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

@ -36,7 +36,6 @@
"eslint-loader": "^1.2.1", "eslint-loader": "^1.2.1",
"eslint-plugin-react": "^5.1.1", "eslint-plugin-react": "^5.1.1",
"exports-loader": "^0.6.3", "exports-loader": "^0.6.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5", "file-loader": "^0.8.5",
"immutable": "^3.7.6", "immutable": "^3.7.6",
"imports-loader": "^0.6.5", "imports-loader": "^0.6.5",

View File

@ -1,6 +1,5 @@
/* global module, __dirname, require */ /* global module, __dirname, require */
var webpack = require('webpack'); var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path'); var path = require('path');
const HOST = 'localhost'; const HOST = 'localhost';
@ -16,7 +15,7 @@ module.exports = {
{ test: /\.json$/, loader: 'json-loader' }, { test: /\.json$/, loader: 'json-loader' },
{ {
test: /\.css$/, 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', loader: 'babel',
@ -46,7 +45,6 @@ module.exports = {
new webpack.optimize.OccurenceOrderPlugin(), new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(), new webpack.NoErrorsPlugin(),
new ExtractTextPlugin('cms.css', { allChunks: true }),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch' 'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
}) })