Skip to content

Commit 4c38343

Browse files
Stop WebpackDevMiddleware littering the 'dist' directories with blah.host-update.js.map files (they never need to be written to disk)
1 parent 4cc61d7 commit 4c38343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/src/WebpackDevMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function attachWebpackDevMiddleware(app: any, webpackConfig: webpack.Configurati
108108
// file on disk wouldn't match the file served to the browser, and the source map line numbers wouldn't
109109
// match up. Breakpoints would either not be hit, or would hit the wrong lines.
110110
(compiler as any).plugin('done', stats => {
111-
copyRecursiveToRealFsSync(compiler.outputFileSystem, '/', [/\.hot-update\.(js|json)$/]);
111+
copyRecursiveToRealFsSync(compiler.outputFileSystem, '/', [/\.hot-update\.(js|json|js\.map)$/]);
112112
});
113113

114114
if (enableHotModuleReplacement) {

0 commit comments

Comments
 (0)