Currently, I am in the process of incorporating stylelint into a new Vue project that I have just set up.
Initially, I believed it would be straightforward to utilize the Stylelint Webpack Plugin. However, upon running yarn serve
, any encountered errors cause the entire operation to freeze without providing any output. On the other hand, if I execute yarn build
, the build process fails as expected but only emits the message "There was a stylelint error"
.
The contents of my vue.config.js
file are outlined below:
const stylelintPlugin = require('stylelint-webpack-plugin');
module.exports = {
configureWebpack: {
plugins: [
new stylelintPlugin({ files: ['**/*.(vue|scss)'] }),
],
},
};
Displayed are the current versions from my package.json
:
"@vue/cli-service": "^3.9.0",
"stylelint": "^10.1.0",
"stylelint-config-recommended": "^2.2.0",
"stylelint-scss": "^3.9.2",