Explanation on Angular CLI 1.2.4 command ng build -
i learning angular4 , wondering ng build , ng build --prod us.
when running ng build, there are, instance main.bundle.js, main.bundle.js.map, generated inside dist folder
but ng build --prod, there only, instance main.90e798078cb11a3159ce.bundle.js, generated inside dist folder
can please explain how ng build work , without --prod
thank you
according angular-cli documentation:
both
--dev/--target=development
,--prod/--target=production
'meta' flags, set other flags. if not specify either--dev
defaults.
and difference between them explained in link: https://github.com/angular/angular-cli/wiki/build#--dev-vs---prod-builds
flag --dev --prod --aot false true --environment dev prod --output-hashing media --sourcemaps true false --extract-css false true
Comments
Post a Comment