Created
November 2, 2015 20:45
-
-
Save vladkosinov/2d0497be4e9eece144d1 to your computer and use it in GitHub Desktop.
How to use stylelint with postcss loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
module: { | |
loaders: [ | |
{test: CSS_REGEX, loaders: ['style', 'css', 'postcss']}, | |
] | |
}, | |
postcss: () => [require('stylelint'), require('postcss-reporter')] | |
} |
you need to have rules, even if they're empty:
require('postcss-import')({
addDependencyTo: webpack,
path: ['node_modules', 'src'],
plugins: [
require('stylelint')({
extends: 'stylelint-config-standard',
rules: []
})
]
}),
require('stylelint')({
extends: 'stylelint-config-standard',
rules: []
}),
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The same. In my case it says:
But:
using stylelintrc from: /Users/vyorkin/github/starter-kit/.stylelintrc
and its really there. Works from CLI