From 5f74d0ae28ece1e0df8e65310405f04f252f1577 Mon Sep 17 00:00:00 2001 From: Andrey Okonetchnikov Date: Tue, 13 Sep 2016 17:18:19 +0200 Subject: [PATCH] Removed extract-text-webpack-plugin for now to enable HMR for CSS as well. --- package.json | 1 - webpack.config.js | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index a2139b67..dd503d0d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index dcaf70d5..94222a49 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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' })