Change WebApplicationBasic template to use web pack vendor DLL and to load CSS as a file (not via JS). Also remove Babel as it's not doing anything here.

This commit is contained in:
SteveSandersonMS
2016-03-01 16:25:37 +00:00
parent 22cebe78d8
commit 0167d5ca3f
8 changed files with 52 additions and 31 deletions

View File

@@ -1,15 +1,8 @@
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var extractCSS = new ExtractTextPlugin('site.css');
module.exports = {
module: {
loaders: [
{ test: /\.css/, loader: extractCSS.extract(['css']) },
]
},
plugins: [
extractCSS,
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.UglifyJsPlugin({ minimize: true })
]
};