Commit af291f3c authored by Ian Sutherland's avatar Ian Sutherland Committed by Joe Haddad
Browse files

Add mjs and jsx filename extensions to file-loader exclude pattern (#3537)

parent 9af04226
Showing with 2 additions and 2 deletions
+2 -2
...@@ -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]',
......
...@@ -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]',
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment