feat(client): add hashes to monaco workers (#42097)
This commit is contained in:
committed by
GitHub
parent
a6acbe20cc
commit
7a8d6b2504
@ -191,7 +191,9 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
|
||||
// involved in SSR. Also, if the plugin is used during the 'build-html' stage
|
||||
// it overwrites the minfied files with ordinary ones.
|
||||
if (stage !== 'build-html') {
|
||||
newPlugins.push(new MonacoWebpackPlugin());
|
||||
newPlugins.push(
|
||||
new MonacoWebpackPlugin({ filename: '[name].worker-[contenthash].js' })
|
||||
);
|
||||
}
|
||||
actions.setWebpackConfig({
|
||||
resolve: {
|
||||
|
Reference in New Issue
Block a user