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

latest releases: @vanilla-extract/vite-plugin@4.0.17, @vanilla-extract/webpack-plugin@2.3.14, @vanilla-extract/integration@7.1.10...
3 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/snowpack-plugin';
    
    const snowpackConfig = {
      plugins: [['@vanilla-extract/snowpack-plugin', { 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 Snowpacks'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.