Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Ionic build for prod breaks generated files #793

Closed
Sh1d0w opened this issue Mar 6, 2017 · 1 comment
Closed

Ionic build for prod breaks generated files #793

Sh1d0w opened this issue Mar 6, 2017 · 1 comment

Comments

@Sh1d0w
Copy link

Sh1d0w commented Mar 6, 2017

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

We have our app available on 3 platforms - Android, iOS and for web (browser).

The problem is that the generated main.js file and some of the images and the fonts appear to be broken after the build, but only for the browser platform, which is very strange.

ionic build android --release --prod - works

ionic build ios --release --prod - works

ionic build browser --release --prod - does not work, generates broken main.js file and some of the images are 0kb in size

What I have tried so far:

  • Removed/Added browser platform
  • Checked I use latest ionic and app scripts
  • Made a build without the --release and --prod flags - this now does not break main.js file, but still generates 0 kb sized images. Strange thing is that some of the images are actually ok, but some of them are not.

I don't know why and what is the difference in the build process for the different platforms, in practicular the minifcation of js and copying the assets, but obviously something is wrong for the browser platform.

I would ask @danbucholtz for some ideas how to further debug in order to resolve this.

What behavior are you expecting?

Browser version to work just like Android and iOS

Which @ionic/app-scripts version are you using?
1.1.4

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)


Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.1.0-201703032024
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v7.7.1
Xcode version: Xcode 8.2.1 Build version 8C1002
@Sh1d0w
Copy link
Author

Sh1d0w commented Mar 6, 2017

Actually I think this is not ionic related, rather than apache/cordova-browser#25

Will investigate and close for now.

@Sh1d0w Sh1d0w closed this as completed Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant