Skip to content

Commit

Permalink
fix: prevent emiting files in server-side (jaredpalmer#947)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar authored and jaredpalmer committed Apr 16, 2019
1 parent 6f83869 commit 6f12cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/razzle/config/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module.exports = (
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash:8].[ext]',
emitFile: true,
emitFile: IS_WEB,
},
},
// "url" loader works like "file" loader except that it embeds assets
Expand All @@ -162,7 +162,7 @@ module.exports = (
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
emitFile: true,
emitFile: IS_WEB,
},
},

Expand Down

0 comments on commit 6f12cb8

Please sign in to comment.