Webpack loader to load css-module json output and the corresponding css file.
ie. loading myApp.css.json
will provide the requiring module with the css-module
classnames and create a require for myApp.css
so that the css
is included.
npm install --save json-css-module-loader
You may need to add .css.json
(or similar) to your webpack resolve extensions.
module: {
loaders: [
{ test: /\.css\.json$/, loader: 'json-css-module-loader' }
]
}
This loader is adapted from the json-loader
;