Vue pug lint loader for webpack
$ npm install vue-pug-lint-loader --save-dev
In your webpack configuration
module.exports = {
// ...
module: {
rules: [
{
test: /\.vue$/,
exclude: /node_modules/,
loader: "vue-pug-lint-loader",
options: require('./.pug-lintrc.js'),
enforce: "pre"
},
],
},
// ...
}
To be safe, you should use enforce: "pre"
section to check source files, not modified
by other loaders (like pug-loader
)
You can pass puglint options using standard webpack loader options.
MIT License