vue-pug-lint-loader

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vue-pug-lint-loader

Weekly Downloads

89

Version

0.0.2

License

MIT

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • unisharp