Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit a11f2f6

Browse files
authored
Merge pull request #286 from winstonewert/master
updated file-loader exclusion
2 parents 78a4fd0 + b946dbb commit a11f2f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module.exports = {
230230
// it's runtime that would otherwise processed through "file" loader.
231231
// Also exclude `html` and `json` extensions so they get processed
232232
// by webpacks internal loaders.
233-
exclude: [/\.js$/, /\.html$/, /\.json$/],
233+
exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/],
234234
loader: require.resolve('file-loader'),
235235
options: {
236236
name: 'static/media/[name].[hash:8].[ext]',

packages/react-scripts/config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ module.exports = {
256256
// it's runtime that would otherwise processed through "file" loader.
257257
// Also exclude `html` and `json` extensions so they get processed
258258
// by webpacks internal loaders.
259-
exclude: [/\.js$/, /\.html$/, /\.json$/],
259+
exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/],
260260
options: {
261261
name: 'static/media/[name].[hash:8].[ext]',
262262
},

0 commit comments

Comments
 (0)