From 4da883cc4f3521a4caaa0176f130756fbf268207 Mon Sep 17 00:00:00 2001 From: Stanislav Date: Sun, 31 Dec 2023 21:02:06 +0500 Subject: [PATCH] fix(nf): fix baseHref on build Pass baseHref to buildEsbuildBrowser to transform index.html and ngsw.json generation --- libs/native-federation/src/builders/build/builder.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/native-federation/src/builders/build/builder.ts b/libs/native-federation/src/builders/build/builder.ts index 2d81cde9..f49db51d 100644 --- a/libs/native-federation/src/builders/build/builder.ts +++ b/libs/native-federation/src/builders/build/builder.ts @@ -61,6 +61,8 @@ export async function* runBuilder( const watch = !!runServer || nfOptions.watch; options.watch = watch; + options.baseHref = nfOptions.baseHref; + const rebuildEvents = new RebuildHubs(); const adapter = createAngularBuildAdapter(options, context, rebuildEvents);