NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1515 most downloaded on npm
css loader module for webpack
Last release 21 days ago
28 Aug 2026
Ships unpredictably
gaps range from 8 days to 1.7 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
155 releases · first in 2012
One column per quarter.
converting all (including reserved and control) filesystem characters to - (it was regression in 3.0.0 version)
avoid the "from" argument must be of type string error
Function behavior for url and import options (#939) (e9eb5ad)@value at-rule in selectors (#941) (05a42e2)@value at rules now support in selector, recommends checking all @values at-rule usage (hint: you can add prefix to all @value at-rules, for example @value v-foo: black; or @value m-foo: screen and (max-width: 12450px), and then do upgrade){Function} behavior for url and import options (need return true when you want handle url/@import and return false if not)exportLocalsStyle option was remove in favor localsConvention option, also it is accept only {String} value (use camelCase value if you previously value was true and asIs if you previously value was false)exportOnlyLocals option was remove in favor onlyLocals optionmodules option now can be {Object} and allow to setup CSS Modules options:
localIdentName option was removed in favor modules.localIdentName optioncontext option was remove in favor modules.context optionhashPrefix option was removed in favor modules.hashPrefix optiongetLocalIdent option was removed in favor modules.getLocalIdent optionlocalIdentRegExp option was removed in favor modules.localIdentRegExp optiondo not break selector with escaping
sourceRoot is present (#901) (e9ce745)<a name="2.1.0"></a>
<a name="2.0.2"></a>
# 2.1.0 (2018-12-25) ### Features * support image-set without url
inappropriate modification of animation keywords
<a name="2.0.1"></a>
getLocalIdent now accepts false value (#865) (1825e8a)<a name="2.0.0"></a>
urls() with ?#hash (#803) (417d105)import at-rules (#806) (4bdf08b)URL in import at-rules (#818) (3ebdcd5)require for urls() (#854) (3338656)composes (#845) (453248f)urls() resolving logic for modules (local and global) and without modules (#843) (fdcf687)import option doesn't affect on composes (#822) (f9aa73c)urls (#856) (5e702e7)import at-rules (#857) (5e6034c)urls() (#832) (da95db8)exportOnlyLocals option (#824) (e9327c0)postcss ast from other loaders (i.e postcss-loader) (#840) (1dad1fb)url() and import at-rules works the same everywhere, it does not matter whether css modules are enabled (with global and local module) or not. Examples - url('image.png') as require('./image.png'), url('./image.png') as require('./image.png'), url('~module/image.png') as require('module/image.png').modules: false disable all css modules features), you can return old behaviour change this on modules: 'global'css-loader/locals was dropped in favor exportOnlyLocals optionimport option only affect on import at-rules and doesn't affect on composes declarations@import at rules now emit warningspostcss@7<a name="1.0.1"></a>
css modules are disabled by default, you need setup their use modules option. You can setup their using local (true is alias for this value) and globa
<a name="2.0.0"></a>
The main BREAKING CHANGES:
modules option. You can setup their using local (true is alias for this value) and global (previous behaviour) value. Why it is disabled by default? A lot of developers use css without css modules features and they get performance problems due postcss plugins spend time on analyze and processing file.uls() and import at-rules works the same everywhere, it does not matter whether css modules are enabled (with global and local module) or not. Examples - url('image.png') as require('./image.png'), url('./image.png') as require('./image.png'), url('~module/image.png') as require('module/image.png').urls() with ?#hash (#803) (417d105)import at-rules (#806) (4bdf08b)URL in import at-rules (#818) (3ebdcd5)require for urls() (#854) (3338656)composes (#845) (453248f)urls() resolving logic for modules (local and global) and without modules (#843) (fdcf687)import option doesn't affect on composes (#822) (f9aa73c)urls (#856) (5e702e7)import at-rules (#857) (5e6034c)urls() (#832) (da95db8)exportOnlyLocals option (#824) (e9327c0)postcss ast from other loaders (i.e postcss-loader) (#840) (1dad1fb)uls() and import at-rules works the same everywhere, it does not matter whether css modules are enabled (with global and local module) or not. Examples - url('image.png') as require('./image.png'), url('./image.png') as require('./image.png'), url('~module/image.png') as require('module/image.png').modules: false disable all css modules features), you can return old behaviour change this on modules: 'global'css-loader/locals was dropped in favor exportOnlyLocals optionimport option only affect on import at-rules and doesn't affect on composes declarations@import at rules now emit warningspostcss@7postcss ast increase performanceloader: trim unquoted import urls
<a name="1.0.0"></a>
minimize option, use postcss-loader with cssnano or use optimize-cssnano-plugin pluginmodule option, use modules option insteadcamelcase option, use camelCase option insteadroot option, use postcss-loader with postcss-url pluginalias option, use resolve.alias feature or use postcss-loader with postcss-url pluginpostcss to 6 versionnodejs version is 6.9webpack version is 4<a name="0.28.11"></a>
remove minimize option, use `postcss-loader` with `cssnano` or use `optimize-cssnano-plugin` plugin
BREAKING CHANGESminimize option, use postcss-loader with cssnano or use optimize-cssnano-plugin pluginmodule option, use modules option insteadcamelcase option, use camelCase option insteadroot option, use postcss-loader with postcss-url pluginalias option, use resolve.alias feature or use postcss-loader with postcss-url pluginpostcss to 6 versionnodejs version is 6.9webpack version is 4lib/processCss: don't check mode for url handling (options.modules)
Bug FixesgetLocalIdent: add rootContext support (webpack >= v4.0.0)
## 2018-01-17 ### Bug Fixes * ignore invalid URLs (url())
loader: correctly check if source map is undefined
Bug Fixespass resolver to localsLoader (options.alias)
add support for aliases starting with / (options.alias)
match mutliple dashes (options.camelCase)
preserve leading underscore in class names
correct plugin order for CSS Modules
## 2017-05-22 ### Bug Fixes * source maps path on windows
allow to specify a full hostname as a root URL
@import (#514) (de4356b)@import and url() (#513) (868fc94)url with space(s) (#495) (534ea55)btoa instead Buffer (#501) (fbb0714)url with space(s) (#495) (534ea55)btoa instead Buffer (#501) (fbb0714)<a name="0.28.0"></a>
<a name="0.27.3"></a>
Nothing published for this version
sourcemaps: use abs paths & remove sourceRoot
Nothing published for this version
Nothing published for this version
sourcemaps: use abs paths & remove sourceRoot
minimizeOptions should be query.minimize! (16c0858)sourcemaps use abs paths & remove sourceRoot
package: fix loader util deprecation warning
Allow a custom getLocalIdent function to generate classnames based on a different schema (#357).
getLocalIdent function to generate classnames based on a different schema (#357).Disabled automatic removal of vendor prefixes, since this caused many issues (#281).
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →