R
R
Ramil2016-05-07 11:28:26
webpack
Ramil, 2016-05-07 11:28:26

How to minify individual bundles in Webpack?

I am faced with the task of building a project using Webpack. In the assembly, you must have the usual assembled bundle and its minified version. It would seem that a trivial solution could be to run the assembly separately for development without minification and for production with minification. But for me this is not the best solution.
Can this be solved somehow using the UglifyJsPlugin? If so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qtuz, 2016-10-31
@qtuz

You can try multiple configurations .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question