Can't run bundle, How can I do prod build?
ppaska opened this issue · comments
Very nice sample and works perfectly well. How can I bundle files together for deployment?
I tried
npm run bundle
and it didn't work!
Error: Cannot find module 'C:\Dev\tmp\Angular2-JumpStart\bundle.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Bundling isn't actually supported in there (I ripped out the files). Sounds like I didn't delete the bundle command though so I'll remove it - thanks for letting me know. I'll eventually be adding Ahead of Time compilation (AOT) into it (whenever I get some extra time) which will pre-compile things for speed.