Skip to content

Commit

Permalink
explicitly use hash for all css files (sveltejs#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivemru committed Feb 2, 2021
1 parent a3fcdbb commit 7fdce2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/create_compilers/RollupCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ export default class RollupCompiler {
const that = this;

// TODO this is hacky. refactor out into an external rollup plugin
(mod.plugins || (mod.plugins = [])).push(css_chunks());
(mod.plugins || (mod.plugins = [])).push(css_chunks({
chunkFileNames: '[name]-[hash].css',
entryFileNames: '[name]-[hash].css'
}));
if (!/[\\/]client\./.test(entry_point)) {
return mod;
}
Expand Down

0 comments on commit 7fdce2f

Please sign in to comment.