Skip to content

Commit

Permalink
Add [chunkhash] to the output filename when emitting css assets
Browse files Browse the repository at this point in the history
  • Loading branch information
moretti committed Jan 19, 2018
1 parent 7572e0d commit 675a90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ module.exports = async (
__PATH_PREFIX__: JSON.stringify(store.getState().config.pathPrefix),
__POLYFILL__: store.getState().config.polyfill,
}),
new ExtractTextPlugin(`styles.css`, { allChunks: true }),
new ExtractTextPlugin(`styles-[chunkhash].css`, { allChunks: true }),
]
case `build-html`:
return [
Expand Down

0 comments on commit 675a90d

Please sign in to comment.