README
scss-config-webpack-plugin
Creating a webpack loader configurations can be quite time consuming.
The scss-config-webpack-plugin
is part of the common-config-webpack-plugin
suite which tries to provide best practices for the most common loader requirements.
If no mode is explicitly set for the plugin the configuration will adjust depending on your webpack mode setting.
The injected configurations are based on create-react-app css part
⚙️development mode webpack.config.js
⚙️production mode webpack.config.js
Installation
npm i --save-dev scss-config-webpack-plugin
Webpack Config
In most projects you will need to set up project specific options but you can still use all or some common-config-webpack-plugin parts.
const ScssConfigWebpackPlugin = require('scss-config-webpack-plugin');
module.exports = {
plugins: [
new ScssConfigWebpackPlugin()
]
}
css modules
Just as create-react-app the scss-config-webpack-plugin supports CSS Modules with the extension .module.css
or .module.scss
.