Skip to content
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

[bug]: webpack fails to build in production #2

Closed
ali-garajian opened this issue Apr 21, 2021 · 1 comment
Closed

[bug]: webpack fails to build in production #2

ali-garajian opened this issue Apr 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ali-garajian
Copy link

ali-garajian commented Apr 21, 2021

Hi there!
According to this OccurrenceOrderPlugin is now enabled by default, and there's no need to include it as a plugin anymore;
So, you can just change this line
plugins: [new CleanWebpackPlugin(), new webpack.optimize.OccurrenceOrderPlugin()]
to this
plugins: [new CleanWebpackPlugin()]
in webpack.production.js, and the error goes away.

BTW, thanks for this setup. I'm fairly new to node, and this repo answered a lot of questions for me :)

@JaylanChen
Copy link
Owner

Sorry, I may not have noticed the notice of GitHub, so I didn't see this issue until now .

Thanks for your reminding, I will fix this bug immediately.

@JaylanChen JaylanChen added the bug Something isn't working label Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants