0

If you deep look at HtmlWebpackPlugin documentation in the mimification topic, you will see that you can set a custom minifier options here

In minifyJS, it says

Minify JavaScript in script elements and event attributes (uses UglifyJS)

Does this means that in my webpack plugins I don't need to use UglifyJSPlugin?
What is better, use UglifyJSPlugin, set minifyJS: true or use both?

1 Answer 1

2

Does this means that in my webpack plugins I don't need to use UglifyJSPlugin?

Yes.

What is better, use UglifyJSPlugin, set minifyJS: true or use both?

All will produce exactly the same output. minifyJS: true is probably the easiest way though.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.