Switch to Webpack

This commit is contained in:
SteveSandersonMS
2016-02-23 13:48:07 +00:00
parent 30cb9d3fa3
commit 0c5eabc022
18 changed files with 104 additions and 105 deletions

View File

@@ -0,0 +1,15 @@
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.UglifyJsPlugin({ minimize: true })
]
};