diff --git a/Makefile b/Makefile index e595895644..b8c57968a2 100644 --- a/Makefile +++ b/Makefile @@ -142,7 +142,7 @@ authui-dev: .PHONY: portal portal: npm run --silent --prefix ./portal build - cp -R ./portal/dist/ ./resources/portal/static/ + cp -R ./portal/dist/. ./resources/portal/static/ # Vite by default will remove the output directory before the build. # So we need to touch .gitkeep after the build to avoid git changes. touch ./portal/dist/.gitkeep diff --git a/portal/scripts/npm-postinstall.sh b/portal/scripts/npm-postinstall.sh index b608b2d403..1164ff7f05 100755 --- a/portal/scripts/npm-postinstall.sh +++ b/portal/scripts/npm-postinstall.sh @@ -22,7 +22,7 @@ mkdir -p ./src/public/shared-assets/ find ./src/public/shared-assets -name 'fabric-icons-*.woff' -print -exec rm '{}' \; # When window.FabricConfig.iconBaseUrl is set, it loads the font directly in the directory. # So we just copy the fonts to outDir. -cp -r ./node_modules/@fluentui/font-icons-mdl2/fonts/. ./src/public/shared-assets/. +cp -R ./node_modules/@fluentui/font-icons-mdl2/fonts/. ./src/public/shared-assets/. # When window.FabricConfig.fontBaseUrl is set, it loads the font with a certain structure. # The original URL is https://static2.sharepointonline.com/files/fabric/assets/fonts/segoeui-westeuropean/segoeui-bold.woff2