mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
fixed production mode
This commit is contained in:
@@ -27,8 +27,7 @@ module.exports = function(env, options) {
|
||||
getAotPlugin('client', !!env.aot)
|
||||
]
|
||||
});
|
||||
|
||||
if (options.mode === 'production') {
|
||||
if (env.production) {
|
||||
serverConfig = webpackMerge({}, serverConfig, prodPartial);
|
||||
clientConfig = webpackMerge({}, clientConfig, prodPartial);
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@ module.exports = {
|
||||
|
||||
],
|
||||
optimization: {
|
||||
minimize: [
|
||||
minimizer: [
|
||||
new UglifyJsPlugin({
|
||||
uglifyOptions: {
|
||||
beautify: false,
|
||||
|
Reference in New Issue
Block a user