more settings
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
|
||||
commonWebpackConfig = require('./webpack.config');
|
||||
|
||||
@@ -20,6 +21,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
|
||||
productionWebpackConfig.plugins.push(new HtmlWebpackPlugin({
|
||||
template: 'server/static/index.html'
|
||||
}));
|
||||
productionWebpackConfig.plugins.push(new ExtractTextPlugin('styles.[hash].css'));
|
||||
productionWebpackConfig.plugins.push(new webpack.optimize.OccurenceOrderPlugin());
|
||||
productionWebpackConfig.plugins.push(
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
|
||||
Reference in New Issue
Block a user