Skip to content

syuji-higa/stlint-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stlint-loader

stlint loader for webpack

install

$ npm install stlint-loader --save-dev

How to use

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.styl$/,
        use: 'stlint-loader',
        exclude: /node_modules/
      }
    ]
  }
}

If you want to pass an option.

module.exports = {
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.styl$/,
        use: [
          {
            loader: 'stlint-loader',
            options: {
              reporter: 'silent'
            }
          }
        ],
        exclude: /node_modules/
      }
    ]
  }
}

Future

Do not want to create instant every time, Think about how to pass options.

License

MIT

About

stlint loader for webpack

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published