Lesshint Plugin for Webpack
Install
$ npm install lesshint-extra-webpack-plugin
Usage
In your webpack configuration:
const LessHintPlugin = ; moduleexports = // ... plugins: files: './source/applications/**/*.less' '!./vendor/**/*.less' configFile: path // ...
For using additional linters:
const LessHintPlugin = ; moduleexports = // ... plugins: files: './source/applications/**/*.less' '!./vendor/**/*.less' configFile: path linters : // ...
Options
See lesshint options, for the complete list of options.
configFile
: The config file location for your lesshint options.files
: The glob pattern for finding files.linters
: Additional linters to be used by lesshint.reporter
: The reporter for lesshint. Default:lesshint-reporter-stylish
.failOnError
: If webpack build should fail if lesshint reported errors. Default:false
.