github vanilla-extract-css/vanilla-extract @vanilla-extract/webpack-plugin@2.0.0

latest releases: @vanilla-extract/vite-plugin@4.0.9, @vanilla-extract/webpack-plugin@2.3.8, @vanilla-extract/vite-plugin@4.0.8...
2 years ago

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • short identifiers are a 7+ character hash. e.g. hnw5tz3
    • debug identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. somefile_mystyle_hnw5tz3
    import { vanillaExtractPlugin } from '@vanilla-extract/webpack-plugin';
    
    vanillaExtractPlugin({ identifiers: 'short' });

    BREAKING CHANGE

    Previously identifiers were formatted as short when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to webpack's mode config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.