I have an angular 2 application (angular cli). And I want to create a web and mobile (cord) version for the application.
Therefore, I want to use cordova ng build -e prodfor assembly for production and ng build -e cordova --output-path mobile/www --base-href ./for creating a project.
I want to include <script type="text/javascript" src="cordova.js"></script>if the environment is a corridor and exclude the api script website, and vice versa if the environment is production
source
share