Skip to content

Commit ebda058

Browse files
Broccofilipesilva
authored andcommitted
fix(@angular/cli): Allow app-shell build without hashing
App shell builds will now work when output-hashing is none
1 parent fc3cf07 commit ebda058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/tasks/render-universal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default Task.extend({
2121
// Get the main bundle from the server build's output directory.
2222
const serverDir = fs.readdirSync(options.serverOutDir);
2323
const serverMainBundle = serverDir
24-
.filter((file: string) => /main\.[a-zA-Z0-9]{20}.bundle\.js/.test(file))[0];
24+
.filter((file: string) => /main\.(?:[a-zA-Z0-9]{20}\.)?bundle\.js/.test(file))[0];
2525
const serverBundlePath = join(options.serverOutDir, serverMainBundle);
2626
const AppServerModuleNgFactory = require(serverBundlePath).AppServerModuleNgFactory;
2727

0 commit comments

Comments
 (0)