[IOS] [Angular] [PWA] Not working when "public" folder is built with (ng build --prod) #5369
-
Hi everyone! I have an angular project with PWA and I added Capacitor to it. On angular, to generate the "dist" folder, I run "ng build --configuration=prod". Running on IOS simulator with the "ng build --configuration=prod" "public" folder is not working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
public folder is for the native projects only, Capacitor CLI copies whatever is your build folder to public folders in the native projects when you run For PWA you don't have to do anything, your build folder is what you have to run/load, you don't have to create a public folder. |
Beta Was this translation helpful? Give feedback.
public folder is for the native projects only, Capacitor CLI copies whatever is your build folder to public folders in the native projects when you run
npx cap copy
ornpx cap sync
.For PWA you don't have to do anything, your build folder is what you have to run/load, you don't have to create a public folder.