stlint loader for webpack
$ npm install stlint-loader --save-dev
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/
}
]
}
}
Do not want to create instant every time, Think about how to pass options.