Building Ionic Web App to Production


#1

I used to use this command to build my app for production:

ionic cordova build browser --prod

This no longer works with the new app scripts for building. If I do use that I get an error that says browser isn’t a supported variable

Tried to used the new app scripts build, but get a bunch of tslint errors which aren’t actually errors. Is there a way to either bypass the tslint errors when making a production build, or can anyone help me with this?

Thank you!


#2

Do you actually need the cordova browser platform? If not, you can use ionic build --prod and the output will be in the www folder.


#3

Please post the complete output (including the executed command).

What is your ionic info output?