These are chat archives for angular/angular-2-ionic-2

Apr 2017
Nick Capito
Apr 14 2017 16:16
@pavel-sindelka I think you want to ruin ionic build --prod --relase (it will do the ngc for you)
Any webpackers out there?

Working on something that will cache bust our main.js file (for our browser deployment) . I see that webpack is generating the right file but ionic build crashes with an error which is referencing the original file name. I found an ENV variable that lets you set the name but since it's dynamic I'm not quite sure how to use it.

[11:00:32] build prod failed: ENOENT: no such file or directory, open '/Users/work/client/www/build/main.js'
[11:00:32] ionic-app-script task: "build"
[11:00:32] Error: ENOENT: no such file or directory, open '/Users/work/client/www/build/main.js'

Web Pack config:

      filename: '[name].[chunkhash].js',

Anyone that has any thoughts let me know

Ankit Kumar
Apr 14 2017 19:10
can i use an external javascript file in my typescript file?
in Angular2?