mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-23 10:50:13 +01:00
chore(package): update angular to 2.2.3 (#471)
* chore(package): update angular to 2.2.1 * chore(package): update angular to 2.2.3
This commit is contained in:
parent
49a100d34c
commit
20b1beafd7
4 changed files with 108 additions and 56 deletions
|
|
@ -13,6 +13,7 @@ const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplaceme
|
|||
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
|
||||
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
|
||||
const WebpackMd5Hash = require('webpack-md5-hash');
|
||||
const V8LazyParseWebpackPlugin = require('v8-lazy-parse-webpack-plugin');
|
||||
|
||||
/**
|
||||
* Webpack Constants
|
||||
|
|
@ -148,9 +149,25 @@ module.exports = function (env) {
|
|||
|
||||
|
||||
beautify: false, //prod
|
||||
// mangle: { screw_ie8 : true, keep_fnames: true }, //prod
|
||||
mangle: false,
|
||||
compress: { screw_ie8: true }, //prod
|
||||
output: {
|
||||
comments: false
|
||||
},
|
||||
mangle: {
|
||||
screw_ie8: true
|
||||
}, //prod
|
||||
compress: {
|
||||
screw_ie8: true,
|
||||
warnings: false,
|
||||
conditionals: true,
|
||||
unused: true,
|
||||
comparisons: true,
|
||||
sequences: true,
|
||||
dead_code: true,
|
||||
evaluate: true,
|
||||
if_return: true,
|
||||
join_vars: true,
|
||||
negate_iife: false // we need this for lazy v8
|
||||
},
|
||||
comments: false //prod
|
||||
}),
|
||||
|
||||
|
|
@ -163,7 +180,12 @@ module.exports = function (env) {
|
|||
|
||||
new NormalModuleReplacementPlugin(
|
||||
/angular2-hmr/,
|
||||
helpers.root('config/modules/angular2-hmr-prod.js')
|
||||
helpers.root('config/empty.js')
|
||||
),
|
||||
|
||||
new NormalModuleReplacementPlugin(
|
||||
/zone\.js(\\|\/)dist(\\|\/)long-stack-trace-zone/,
|
||||
helpers.root('config/empty.js')
|
||||
),
|
||||
|
||||
/**
|
||||
|
|
@ -194,6 +216,7 @@ module.exports = function (env) {
|
|||
* See: https://gist.github.com/sokra/27b24881210b56bbaff7
|
||||
*/
|
||||
new LoaderOptionsPlugin({
|
||||
minimize: true,
|
||||
debug: false,
|
||||
options: {
|
||||
context: helpers.root('src'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue