Skip to content

Commit

Permalink
fix(react): set "watch: false" on module federation serve-static options
Browse files Browse the repository at this point in the history
file-server watches for changes by default, which defeats the purpose of
static serve
  • Loading branch information
jaysoo committed Sep 7, 2023
1 parent f487929 commit ff927db
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function updateModuleFederationProject(
defaultConfiguration: 'production',
options: {
buildTarget: `${options.projectName}:build`,
watch: false,
port: options.devServerPort,
},
configurations: {
Expand Down

0 comments on commit ff927db

Please sign in to comment.