S
S
Stoik2016-12-12 20:28:58
Angular
Stoik, 2016-12-12 20:28:58

How to properly build a project for Angular 2 using the angular cli?

Good day.
I'm building a project using angular cli . When building, as it is written in the manual, help, manuals, I get 3 separate files - inline.js , styles.bundle.js , main.bundle.js . I need the file to be one - someapp.js . Is it possible? How to do this (get one project file with a given name when building)?
Z.Y. I'm building the project with the ng build
command Z.Z.Y. Gulp, Grunt and other utilities of this kind, I don’t want to install additionally, because. I think that angular cli - should be enough.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Berg, 2016-12-15
@art_haacki

Well, Angular-CLI is not designed for this, if you want to compress into one file, which is not very practical :) then use Webpack, Grunt, Gulp. To your fuss.
But you can, let's say, compress into your folder for the intended purpose
And to see all the parameters
to help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question