Removed extract-text-webpack-plugin for now to enable HMR for CSS as well.
This commit is contained in:
parent
eedc1e4d23
commit
5f74d0ae28
@ -36,7 +36,6 @@
|
||||
"eslint-loader": "^1.2.1",
|
||||
"eslint-plugin-react": "^5.1.1",
|
||||
"exports-loader": "^0.6.3",
|
||||
"extract-text-webpack-plugin": "^1.0.1",
|
||||
"file-loader": "^0.8.5",
|
||||
"immutable": "^3.7.6",
|
||||
"imports-loader": "^0.6.5",
|
||||
|
@ -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'
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user