@intelrug/stylint-loader
v1.0.2
Published
Stylint loader with webpack 4 support
Downloads
1
Maintainers
Readme
Install
Install @intelrug/stylint-loader
package
yarn install @intelrug/stylint-loader
Usage
module.exports = {
// ...
module: {
rules: [
{
enforce: 'pre',
test: /\.styl$/,
loader: '@intelrug/stylint-loader'
}
]
}
// ...
}
Options
You can pass stylint options directly by
- Adding a query string to the loader for this loader usable only
module.exports = {
// ...
module: {
rules: [
{
enforce: 'pre',
test: /\.styl$/,
loader: '@intelrug/stylint-loader?{brackets: "never"}'
}
]
}
// ...
}
- Adding an
options
entry:
module.exports = {
// ...
module: {
rules: [
{
enforce: 'pre',
test: /\.styl$/,
loader: '@intelrug/stylint-loader',
options: {
config: 'path/.stylintrc'
}
}
]
}
// ...
}