Fake classnames loader
Generate class name from property or input similar to classnames-loader but not loading content or processing from actual content.
This make css compilation for testing faster.
Installation
npm install --save-dev fake-classnames-loader
Usage
In webpack config
{
test: /\.css$/,
loader: 'fake-classnames')
}
and in js code file
// file.js console// Output: 'Component_class1' console// Output: 'Component_class1 Component_class2'
License
ISC