dinamix
dinamix

Reputation: 661

angular cli build without bundling

Running ng build for a new angular project compiles to build files. This is inconvenient as I want to access the files directly without bundling after the angular project has been built for easy editing. Is there any way to build an angular project without bundling and just keeping the original typescript and html files after the build?

Upvotes: 2

Views: 1457

Answers (1)

Rakesh Kumar Cherukuri
Rakesh Kumar Cherukuri

Reputation: 1271

ng cli (or webpack or any other js bundler) is there to bundle your source code into browser-compatible code.

That is because Typescript (guess thats the case here) can not be understood by all browsers as-is. So, you need to use a bundler to transform it to javascript.

ng-cli (or webpack for that matter) does provide a way to keep it running and watch over your source files. This is same as what you are asking for but with one difference : ng-cli (or webpack) does the incremental bundling whenever you modify your source code.

As pointed out in other comments, you can have a look at ng-cli and give it a try.

Upvotes: 1

Related Questions