@sdvg/stylelint-loader
v0.0.0
Published
Stylelint loader for Webpack 4
Downloads
1
Maintainers
Readme
Webpack Stylelint loader
Stylelint loader for Webpack 4.
Installation
$ npm install -D @sdvg/stylelint-loader
You also need to install Stylelint and provide a config:
$ npm install -D stylelint
Add as first loader (last in Array) for your styles like this:
{
test: /\.css$/,
use: [
'style-loader',
'css-loader',
{
loader: '@sdvg/stylelint-loader',
options: {
...
}
}
]
}
Options
By default Stylelint warnings are emitted as warnings and Stylelint errors as errors.
The following options are passed directly to Stylelint:
- configBasedir
- configFile
- configOverrides
- ignoreDisables
- disableDefaultIgnores
- reportNeedlessDisables
- syntax
- customSyntax