github lynx-family/lynx-stack @lynx-js/react-webpack-plugin@0.6.17

latest releases: @lynx-js/offscreen-document@0.1.4, @lynx-js/cache-events-webpack-plugin@0.0.2, @lynx-js/web-constants@0.16.0...
2 months ago

Patch Changes

  • Enable fine-grained control for output.inlineScripts (#883)

    type InlineChunkTestFunction = (params: {
      size: number;
      name: string;
    }) => boolean;
    
    type InlineChunkTest = RegExp | InlineChunkTestFunction;
    
    type InlineChunkConfig =
      | boolean
      | InlineChunkTest
      | { enable?: boolean | 'auto'; test: InlineChunkTest };
    import { defineConfig } from '@lynx-js/rspeedy';
    
    export default defineConfig({
      output: {
        inlineScripts: ({ name, size }) => {
          return name.includes('foo') && size < 1000;
        },
      },
    });

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.