github lynx-family/lynx-stack @lynx-js/template-webpack-plugin@0.8.1

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

  • feat: ::placeholder will be compiled to part(input)::placeholder, which means you can use pseudo-element CSS to add placeholder styles to input and textarea. (#1158)

    // before
    <input placeholder-color='red' placeholder-font-weight='bold' placeholder-font-size='20px'>
    
    // after
    <input>
    
    input::placeholder {
      color: red;
      font-weight: bold;
      font-size: 20px;
    }
    
  • 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.