Reputation: 95
How do I populate the dist folder in my angular2 app? I was under the impression it got automagically populated when building the app with npm but the only file that gets added is webpack-assets.json. I need other files like main.bundle.js and the other js and html files necessary to run my app to be built into dist
The angular2 starter I am using is https://github.com/AngularClass/angular2-webpack-starter
Upvotes: 0
Views: 502
Reputation: 4172
You can run your app in a local server with
npm run server
but to automagically populate the /dist folder you use the build command:
# development
npm run build:dev
# production (jit)
npm run build:prod
# AoT
npm run build:aot
Upvotes: 1