Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
a0030fcf
Commit
a0030fcf
authored
7 years ago
by
Jonny Buchanan
Committed by
Joe Haddad
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update style-loader and disable inclusion of its HMR code in builds (#3236)
parent
62f0a83c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.prod.js
+6
-1
packages/react-scripts/config/webpack.config.prod.js
packages/react-scripts/package.json
+1
-1
packages/react-scripts/package.json
with
7 additions
and
2 deletions
+7
-2
packages/react-scripts/config/webpack.config.prod.js
+
6
-
1
View file @
a0030fcf
...
@@ -197,7 +197,12 @@ module.exports = {
...
@@ -197,7 +197,12 @@ module.exports = {
loader
:
ExtractTextPlugin
.
extract
(
loader
:
ExtractTextPlugin
.
extract
(
Object
.
assign
(
Object
.
assign
(
{
{
fallback
:
require
.
resolve
(
'
style-loader
'
),
fallback
:
{
loader
:
require
.
resolve
(
'
style-loader
'
),
options
:
{
hmr
:
false
,
},
},
use
:
[
use
:
[
{
{
loader
:
require
.
resolve
(
'
css-loader
'
),
loader
:
require
.
resolve
(
'
css-loader
'
),
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/package.json
+
1
-
1
View file @
a0030fcf
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
"postcss-loader"
:
"2.0.6"
,
"postcss-loader"
:
"2.0.6"
,
"promise"
:
"8.0.1"
,
"promise"
:
"8.0.1"
,
"react-dev-utils"
:
"^4.1.0"
,
"react-dev-utils"
:
"^4.1.0"
,
"style-loader"
:
"0.1
8.2
"
,
"style-loader"
:
"0.1
9.0
"
,
"sw-precache-webpack-plugin"
:
"0.11.4"
,
"sw-precache-webpack-plugin"
:
"0.11.4"
,
"url-loader"
:
"0.6.2"
,
"url-loader"
:
"0.6.2"
,
"webpack"
:
"3.5.1"
,
"webpack"
:
"3.5.1"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment