sk555
sk555

Reputation: 888

How to convert existing Angular 4 project to webpack

It's longtime I am working on an angular 4 project. Today I want to convert it to webpack.

I spent many time looking for a tutorial to do that But I have not found it.

I tried to grasp this the documentation of angular webpack but i didn't ge steps to convert the project.

Can someone please indicate me steps to follow ?

Any suggestion will be appreciated.

Regards

Upvotes: 0

Views: 617

Answers (1)

Rakesh Kumar Cherukuri
Rakesh Kumar Cherukuri

Reputation: 1271

I am not sure of the reasons you want to make a switch to webpack from angular cli (guess your code is already using that). Personally, I always prefer using webpack directly rather than using angular cli. I believe that gives the developer more control. But, that comes with big responsibility (as is usual with great power) towards evaluating all the goods from angular cli that you are going to miss!

Anyway, here is a sample module that uses webpack instead of angular cli. It uses latest angular 5 but should work with angular 4 as well.

Upvotes: 1

Related Questions