Removed extract-text-webpack-plugin for now to enable HMR for CSS as well.

This commit is contained in:
Andrey Okonetchnikov
2016-09-13 17:18:19 +02:00
parent eedc1e4d23
commit 5f74d0ae28
2 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,5 @@
/* global module, __dirname, require */
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');
const HOST = 'localhost';
@ -16,7 +15,7 @@ module.exports = {
{ test: /\.json$/, loader: 'json-loader' },
{
test: /\.css$/,
loader: ExtractTextPlugin.extract("style", "css?modules&importLoaders=1&&localIdentName=cms__[name]__[local]!postcss"),
loader: 'style!css?modules&importLoaders=1&&localIdentName=cms__[name]__[local]!postcss',
},
{
loader: 'babel',
@ -46,7 +45,6 @@ module.exports = {
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new ExtractTextPlugin('cms.css', { allChunks: true }),
new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
})