Skip to content

Commit d63061a

Browse files
fix: support hashed production output
1 parent 3d883ed commit d63061a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/serve.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ export function serve(
9191
modulesFolder,
9292
homeDir,
9393
cache,
94-
output: `${browserOutput}/$name.js`,
94+
output: `${browserOutput}/$name-$hash.js`,
9595
target: 'browser@es5',
9696
useTypescriptCompiler: true,
97+
hash: isProdBuild,
9798
plugins: [
9899
isAotBuild && NgAotFactoryPlugin(),
99100
isAotBuild &&

0 commit comments

Comments
 (0)