Bring back extract text webpack plugin

This commit is contained in:
Jori Lallo
2017-09-11 23:18:44 -07:00
parent f9ec9d7b15
commit 9808c1cdf5
5 changed files with 26 additions and 4 deletions

View File

@ -1,6 +1,7 @@
/* eslint-disable */
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
const commonWebpackConfig = require('./webpack.config');
@ -18,6 +19,7 @@ const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
developmentWebpackConfig.plugins.push(
new webpack.optimize.OccurenceOrderPlugin()
);
developmentWebpackConfig.plugins.push(new ExtractTextPlugin('styles.css'));
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
developmentWebpackConfig.plugins.push(new webpack.NoErrorsPlugin());
developmentWebpackConfig.plugins.push(