A webpack plugin that provides a preset SCSS configuration, including sass-loader, postcss-loader, autoprefixer, and css-loader with source maps and mini-css-extract-plugin support. The current stable version is 2.0.3 (released 2022-09-01). It works with webpack >=4.36.0 and Node.js >=10. It is part of the merkle-open webpack-config-plugins suite. Unlike manual SCSS setups, this plugin aims to reduce boilerplate by pre-configuring common loaders and options. However, it abstracts away configuration details which may lead to conflicts with custom loaders.
npm install scss-config-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Minimal usage: add the plugin to webpack config. Requires webpack >=4.36.0 and Node >=10.
Install mini-css-extract-plugin and ensure it's added to both plugins and loaders.
Avoid mixing with other SCSS/CSS loaders. Remove any existing sass-loader, css-loader, style-loader configuration.
Update to sass-loader >=11 and manually patch the plugin options if needed, or lock sass-loader to v10.
Upgrade Node and npm to meet minimum requirements.
Review changelog and update any internal references to plugin internals.
Run `npm install scss-config-webpack-plugin --save-dev` (or yarn/dedupe).
Use `const ScssConfigWebpackPlugin = require('scss-config-webpack-plugin');`.Ensure the package name is spelled correctly in the require statement.
Check the plugin documentation for valid options. Common mistake: passing a string instead of an object.