diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index 9685126b..2ca0236a 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -139,7 +139,7 @@ const configNode = (env: any, argv: { mode: string }): Configuration => { { apply: (compiler: Compiler) => { - compiler.hooks.emit.tapAsync('CopyFilesPlugin', (compilation, callback) => { + compiler.hooks.afterEmit.tapAsync('CopyFilesPlugin', (compilation, callback) => { Promise.all( outputPaths.map((outputPath) => { const sourceDir = path.resolve(__dirname, sourceBuild);