For the record, this is working configuration for webpack:
1.Install:
1 | npm i --save-dev stylelint stylelint-processor-html stylelint-config-standard stylelint-webpack-plugin |
2.Create .stylelintrc
1 | { |
3.Load stylelint-webpack-plugin (in build/webpack.base.conf.js
for Vue webpack template)
1 | //... |
Add lint:css to package.json
1 | "scripts": { |
参考
如果文章对你有帮助,欢迎点击上方按钮打赏作者