mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 00:18:13 +08:00
Update style-loader and disable inclusion of its HMR code in builds (#3236)
This commit is contained in:
committed by
Joe Haddad
parent
62f0a83c5e
commit
a0030fcf2d
@@ -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'),
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user