Webpack block for CSS modules.
npm install @webpack-blocks/css-modules

This is the css-modules block providing CSS modules configuration by setting the modules parameter on the css-loader.
``js
const { createConfig } = require('@webpack-blocks/webpack')
const cssModules = require('@webpack-blocks/css-modules')
module.exports = createConfig([
cssModules(/ options /)
])
`
#### exclude (optional)
Regular expression, string or function describing which files/directories not to use the CSS modules loader on. Defaults to /\/node_modules\// regex.
#### importLoaders (optional integer)
That many loaders after the css-loader are used to import resources. Defaults to 1. See css-loader.
#### localIdentName (optional string)
The pattern how to rewrite the CSS class names. Defaults to [name]--[local]--[hash:base64:5] in development and [hash:base64:10]` in production.
Check out the
š Main Documentation
Released under the terms of the MIT license.