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)
|
getAotPlugin('client', !!env.aot)
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
if (env.production) {
|
||||||
if (options.mode === 'production') {
|
|
||||||
serverConfig = webpackMerge({}, serverConfig, prodPartial);
|
serverConfig = webpackMerge({}, serverConfig, prodPartial);
|
||||||
clientConfig = webpackMerge({}, clientConfig, prodPartial);
|
clientConfig = webpackMerge({}, clientConfig, prodPartial);
|
||||||
}
|
}
|
||||||
|
@@ -42,7 +42,7 @@ module.exports = {
|
|||||||
|
|
||||||
],
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: [
|
minimizer: [
|
||||||
new UglifyJsPlugin({
|
new UglifyJsPlugin({
|
||||||
uglifyOptions: {
|
uglifyOptions: {
|
||||||
beautify: false,
|
beautify: false,
|
||||||
|
Reference in New Issue
Block a user