Skip to content

Values + Symbols + Generic names

Compare
Choose a tag to compare
@mightyaleksey mightyaleksey released this 02 Nov 00:03
· 121 commits to master since this release

Values added: css-modules/css-modules-loader-core#28
Also added possibility to specify string patterns similar to webpack. For example:

hook({
  generateScopedName: '[name]__[local]___[hash:base64:5]'
});

In order to use them together with webpack you should update the css-loader version to v0.21.0 or higher.

Also some major internal updates. If you provided custom functions to the generateScopedName option, then you may be affected by those changes. Now you'll get full absolute paths to the files as the second argument: generateScopedName: function (name, filepath, css) { ... }

All the shortcuts were removed: root, d, u. Use rootDir and use instead.