Change Angular2 template to use vendor DLL too. Temporarily disabled server-side prerendering.

This commit is contained in:
SteveSandersonMS
2016-03-01 14:30:42 +00:00
parent 2c3f29df11
commit 4dcf63dab4
9 changed files with 62 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var extractCSS = new ExtractTextPlugin('vendor.css');
var isDevelopment = process.env.ASPNET_ENV === 'Development';
module.exports = {
resolve: {
@@ -29,5 +30,7 @@ module.exports = {
path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'),
name: '[name]_[hash]'
})
]
].concat(isDevelopment ? [] : [
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } })
])
};