Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 795 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 795 Bytes

Module-level Linter plugin for Webpack

Usage

In your webpack configuration

const MintPlugin = require('mint-webpack-plugin')

module.exports = {
  // ...
  plugins: [
    new MintPlugin({
        root: './src',
        mask: ['**/*.js*', '**/*.jsx', '**/*.css', '**/*.svg', '!**/*.spec.js*', '!node_modules/**'] // any suitable globby patterns (https://github.com/sindresorhus/globby)
    }),
  ],
  // ...
}

Available checks

At the moment there is only one linting option - search for unused files in your project.

Results

The plugin will dump report every time you build your project.


Here is a short presentation on this plugin idea (in russian)