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
af291f3c
Commit
af291f3c
authored
7 years ago
by
Ian Sutherland
Committed by
Joe Haddad
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add mjs and jsx filename extensions to file-loader exclude pattern (#3537)
parent
9af04226
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.dev.js
+1
-1
packages/react-scripts/config/webpack.config.dev.js
packages/react-scripts/config/webpack.config.prod.js
+1
-1
packages/react-scripts/config/webpack.config.prod.js
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/config/webpack.config.dev.js
+
1
-
1
View file @
af291f3c
...
@@ -223,7 +223,7 @@ module.exports = {
...
@@ -223,7 +223,7 @@ module.exports = {
// it's runtime that would otherwise processed through "file" loader.
// it's runtime that would otherwise processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
// by webpacks internal loaders.
exclude
:
[
/
\.
js$/
,
/
\.
html$/
,
/
\.
json$/
],
exclude
:
[
/
\.
(
js
|jsx|mjs
)
$/
,
/
\.
html$/
,
/
\.
json$/
],
loader
:
require
.
resolve
(
'
file-loader
'
),
loader
:
require
.
resolve
(
'
file-loader
'
),
options
:
{
options
:
{
name
:
'
static/media/[name].[hash:8].[ext]
'
,
name
:
'
static/media/[name].[hash:8].[ext]
'
,
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
1
-
1
View file @
af291f3c
...
@@ -249,7 +249,7 @@ module.exports = {
...
@@ -249,7 +249,7 @@ module.exports = {
// it's runtime that would otherwise processed through "file" loader.
// it's runtime that would otherwise processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
// by webpacks internal loaders.
exclude
:
[
/
\.
js$/
,
/
\.
html$/
,
/
\.
json$/
],
exclude
:
[
/
\.
(
js
|jsx|mjs
)
$/
,
/
\.
html$/
,
/
\.
json$/
],
options
:
{
options
:
{
name
:
'
static/media/[name].[hash:8].[ext]
'
,
name
:
'
static/media/[name].[hash:8].[ext]
'
,
},
},
...
...
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