-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ionic4 --source-map and cordova issues #3890
Comments
Hello @dwieeb, with |
Glad to hear We disable deleting the If we do delete the output directory with each build, the Cordova CLI will occasionally forcefully error out saying "This is not a Cordova project." Perhaps a flag to force delete the output directory? |
We did about 20 tests, we removed always the www folder before we created a cordova production build and had never a problem like described. The problem is, if you don't polish www folder you can have several problems with wrong and unneeded files. Thx |
@mburger81 Turning off output directory deletion was done here ionic-team/angular-toolkit#51. Admittedly I could never reproduce that issue. I just knew the change would resolve the issue. There's also #3823 where not deleting it was causing issues for multi-app projects. In any case, this needs more investigation. It's not good that artifacts from a dev build can end up in a prod build. |
@mburger81 Gonna close this in favor of a more specific issue: #3954 |
Description:
running
ionic cordova build android --prod --release --source-map
does not clean thewww
folder and also the --source-map
advanced options is ignored, maps seems to not be created.if we perform
ionic build --prod --source-map
the maps are created in thewww
folder.if we perform
ionic build --prod --source-map --engine=cordova --platform=android --release
a) the www folder is not cleaned
b) the source map files are not created
c) the cordova app is not created, it stops after building the www files
My
ionic info
:The text was updated successfully, but these errors were encountered: