0.0.0 • Published 6 years ago

@sdvg/stylelint-loader v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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:

License

MIT License