feat(client): add hashes to monaco workers (#42097)

This commit is contained in:
Oliver Eyton-Williams
2021-05-11 14:56:06 +02:00
committed by GitHub
parent a6acbe20cc
commit 7a8d6b2504

View File

@ -191,7 +191,9 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
// involved in SSR. Also, if the plugin is used during the 'build-html' stage // involved in SSR. Also, if the plugin is used during the 'build-html' stage
// it overwrites the minfied files with ordinary ones. // it overwrites the minfied files with ordinary ones.
if (stage !== 'build-html') { if (stage !== 'build-html') {
newPlugins.push(new MonacoWebpackPlugin()); newPlugins.push(
new MonacoWebpackPlugin({ filename: '[name].worker-[contenthash].js' })
);
} }
actions.setWebpackConfig({ actions.setWebpackConfig({
resolve: { resolve: {