-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
stylelint-webpack-plugin block WDS launch #4891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you run Nevertheless, there's a bug in Vue CLI that we forgot to process the webpack |
I'd like to take care of this issue, it just takes some time. |
hello,I`m trying to fix the bug by the hint you gived And add fail hook handler when compiler failed in vue-cli/packages/@vue/cli-service/lib/commands/serve.js#L161 add code as follows compiler.hooks.failed.tap('failHandler', error => {
console.error(error)
process.exit(1)
}) but when I start this demo,the handler not catch this error |
@halu886 You'd better keep the CLI running, exiting program when compiler's failed event occured is not a good experience |
In this case, we got webpack-related issues: misconfiguration (stylelint.config.js). The error is not compilation error. Vue CLI forgot to process the webpack failed hook. We need to output the error stack and terminate the process.
Then we will got the expected output.
I send a PR, @sodatea Do you have any suggestions? |
Version
4.0.5
Reproduction link
https://github.com/joe223/stylelint-webpack-plugin-block-WDS-launch
Environment info
Steps to reproduce
stylelint-webpack-plugin
tovue.config.js
as https://vue-loader.vuejs.org/zh/guide/linting.html#stylelint mentionednpm run dev
What is expected?
WDS should be launched successfully
What is actually happening?
WDS Starting keep launching.
Output:
> vue-cli-service serve INFO Starting development server...
The text was updated successfully, but these errors were encountered: