diff --git a/client/gatsby-node.js b/client/gatsby-node.js index 97305f548e..98a832101c 100644 --- a/client/gatsby-node.js +++ b/client/gatsby-node.js @@ -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: {