Update style-loader and disable inclusion of its HMR code in builds (#3236)

This commit is contained in:
Jonny Buchanan
2017-10-06 10:02:32 +10:00
committed by Joe Haddad
parent 62f0a83c5e
commit a0030fcf2d
2 changed files with 7 additions and 2 deletions

View File

@@ -197,7 +197,12 @@ module.exports = {
loader: ExtractTextPlugin.extract(
Object.assign(
{
fallback: require.resolve('style-loader'),
fallback: {
loader: require.resolve('style-loader'),
options: {
hmr: false,
},
},
use: [
{
loader: require.resolve('css-loader'),

View File

@@ -49,7 +49,7 @@
"postcss-loader": "2.0.6",
"promise": "8.0.1",
"react-dev-utils": "^4.1.0",
"style-loader": "0.18.2",
"style-loader": "0.19.0",
"sw-precache-webpack-plugin": "0.11.4",
"url-loader": "0.6.2",
"webpack": "3.5.1",