Skip to content

UniSharp/vue-pug-lint-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-pug-lint-loader

Vue pug lint loader for webpack

Install

$ npm install vue-pug-lint-loader --save-dev

Usage

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)

Options

You can pass puglint options using standard webpack loader options.

License

MIT License

About

Unoffical vue-pug-lint loader for Webpack

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%