Skip to content

Commit

Permalink
chore: Don't use chunked files in dev either
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyMFarley committed Oct 19, 2017
1 parent 82c1ff0 commit 50e9891
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module.exports = {
loader: require.resolve('url-loader'),
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
name: 'static/media/[name].[ext]',
},
},
// Process JS with Babel.
Expand Down Expand Up @@ -204,21 +204,17 @@ module.exports = {
require.resolve('less-loader')
],
},
// "file" loader makes sure those assets get served by WebpackDevServer.
// When you `import` an asset, you get its (virtual) filename.
// In production, they would get copied to the `build` folder.
// This loader doesn't use a "test" so it will catch all modules
// that fall through the other loaders.
{
loader: require.resolve('ignore-loader'),
// Exclude `js` files to keep "css" loader working as it injects
// it's runtime that would otherwise processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
exclude: [/\.js$/, /\.html$/, /\.json$/],
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash:8].[ext]',
},
exclude: [
/\.js$/, /\.html$/
]
},
],
},
Expand Down

0 comments on commit 50e9891

Please sign in to comment.