Skip to content

TobiasFriberg/lesshint-webpack-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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: [
              './source/applications/**/*.less',
              './source/frame/**/*.less',
              '!./source/frame/bootstrap/**/*.less',
              './source/modules/**/*.less',
              './source/layouts/**/*.less',
          ],
          configFile: path.resolve(__dirname, 'lesshint.json')
      })
  ],
  // ...
}

Options

See lesshint options, for the complete list of options.

  • configFile: You can set the config file location for your lesshint options, remove to use .lesshintrc file
  • files: You can set the glob pattern for finding files.
  • reporter: You can set the reporter for lesshint. Default: lesshint-reporter-stylish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%