webpack and angular app

30 views
Skip to first unread message

Reza Razavipour

unread,
May 19, 2017, 1:31:38 PM5/19/17
to Angular and AngularJS discussion
Is there a way to use Wepack to generate one js file for the whole application?

Sander Elias

unread,
May 20, 2017, 12:27:51 AM5/20/17
to Angular and AngularJS discussion
Hi Reza,

Yes, there is. But if you are using the cli, it might be not so simple.

Regards
Sander

Reza

unread,
May 20, 2017, 12:21:51 PM5/20/17
to ang...@googlegroups.com
And how about a small number of files using the cli?
--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/j1-Ri8xZUkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Sebastian Kalicki

unread,
May 21, 2017, 10:49:37 AM5/21/17
to Angular and AngularJS discussion
Hi Reza,

If you use the build command then angular cli will create four files.

Best,
Sebastian

Sebastian Kalicki

unread,
May 21, 2017, 10:49:52 AM5/21/17
to Angular and AngularJS discussion
Hi Reza,

ng cli creates four javascript files, when you using ng build.

I recommend you to use angular cli. I think this is the easiest way to start with angular.

https://cli.angular.io/

Best,
Sebastian

Am Samstag, 20. Mai 2017 18:21:51 UTC+2 schrieb Reza Razavipour:
Reply all
Reply to author
Forward
0 new messages