mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 02:07:00 +08:00
feat(client): add hashes to monaco workers (#42097)
This commit is contained in:
@@ -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