M
M
markmariner2017-03-10 17:37:30
Angular
markmariner, 2017-03-10 17:37:30

How to use UglifyJsPlugin along with Angular.js 1.5?

When using the plugin webpack.optimize.UglifyJsPluginwhen building the project, there is a problem that the variable names in the function parameters change, and Angular.js does not understand what the call is about. It is possible to fix this problem by using the option mangle: falsewhich disables changing variable names, but I have heard that there is a more elegant solution using some kind of plugin for Angular.js.
How can we gracefully solve this problem by shortening variable names?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nikomod, 2017-03-10
@markmariner

Try ng-annotate loader.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question