lesshint-webpack-plugin

0.0.5 • Public • Published

Lesshint Plugin for Webpack

Install

$ npm install lesshint-webpack-plugin

Usage

In your webpack configuration

var LessHintPlugin = require('lesshint-webpack-plugin');
 
module.exports = {
  // ...
  plugins: [
    new LessHintPlugin({
          files: [
                path.join(__dirname , './source/applications/**/*.less'),
                path.join(__dirname , './source/frame/**/*.less'),
                path.join(__dirname , '!./source/frame/bootstrap/**/*.less'),
                path.join(__dirname , './source/modules/**/*.less'),
                path.join(__dirname , './source/layouts/**/*.less')
          ],
          configFile: path.resolve(__dirname, '.lesshintrc')
      })
  ],
  // ...
}

Options

See lesshint options, for the complete list of options.

  • configFile: You can set the config file location for your lesshint options if not given it will look for a .lesshintrc file
  • files: You can set the glob pattern for finding files (absolute path).
  • reporter: You can set the reporter for lesshint. Default: lesshint-reporter-stylish

Package Sidebar

Install

npm i lesshint-webpack-plugin

Weekly Downloads

214

Version

0.0.5

License

MIT

Unpacked Size

2.73 kB

Total Files

3

Last publish

Collaborators

  • grofzero