You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #425 Replace uglifyjs-webpack-plugin by terser-webpack-plugin (Lyrkan)
This PR was merged into the master branch.
Discussion
----------
Replace uglifyjs-webpack-plugin by terser-webpack-plugin
This PR replaces `uglifyjs-webpack-plugin` by `terser-webpack-plugin` since the former won't support ES6+ code anymore (closes#416).
It also removes the `configureUglifyJsPlugin()` method (well, it's still there but throws an error) and adds `configureTerserPlugin()` instead.
Commits
-------
a549c7a Replace uglifyjs-webpack-plugin by terser-webpack-plugin
thrownewError('The enableCoffeeScriptLoader() method and CoffeeScript support was removed from Encore due to support problems with Webpack 4. If you are interested in this feature, please submit a pull request!');
1147
1147
}
1148
+
1149
+
/**
1150
+
* @deprecated
1151
+
* @return {void}
1152
+
*/
1153
+
configureUglifyJsPlugin(){
1154
+
thrownewError('The configureUglifyJsPlugin() method was removed from Encore due to uglify-js dropping ES6+ support in its latest version. Please use configureTerserPlugin() instead.');
1155
+
}
1148
1156
}
1149
1157
1150
1158
// Proxy the API in order to prevent calls to most of its methods
0 commit comments