A css loader inspired by webpack/css-loader.
This loader is different than webpack/css-loader in the following ways.
$ npm install --save a-css-loader
// webpack.config.jsmoduleexports =module:/* ... Omitted */loaders:test: /\.css$/loader: 'a-css-loader'query:/* These are the defaults */camelize: falsescopedNameFormat: '[local]--[hash:5]'mode: 'pure';
/* @import will combine the css of imported files*/;/* @require are just an alias for @import.They are useful when combining this loader with the sass loader because they allow you to bypasssass's own @import*/@//* These variables will be stored and exported as locals */@@/
;cssModule'my-special-color' === '#ff00ff'; // truecssModule'another-special-color' === 'another-special-color'; // truecssModule'my-class' === 'another' + ' my-class--1a1b2'; // true
By default, most path references are resolved by webpack. The only exception is in
functions. To force them to use webpack to resolve the path, prepend the path with a
|camelize||boolean||Wether to export camelized versions of the keys|
|scopedNameFormat||string||Format for class name. It leverages this.|
|mode||enum||'pure', 'global', or 'local'|