Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular-cli or Webpack [closed]

I used angular-cli in our one project. Now, we came to know about webpack. As per my research, webpack is faster than angular-cli and it also removes unused code. I don't know about drawbacks.

I just want to know that which one is better to use in all ways like website speed, less code etc.

like image 865
Jeeten Parmar Avatar asked Jan 05 '17 11:01

Jeeten Parmar


People also ask

Does Angular still use Webpack?

The Angular build process uses webpack behind the scenes to transpile TypeScript to JavaScript, transform Sass files to CSS, and many other tasks. To understand the importance of this build tool, it helps to understand why it exists. Browsers have very limited support for JavaScript modules.

What is the difference between Angular CLI and Webpack?

Webpack is a module bundler and task runner. Angular CLI is a command line interface that bundles some of the techniques mentioned above. Under the hood it uses Webpack. It is easy to create an application that works out of the box.

Does Angular CLI use Webpack?

The Angular CLI can create a new Angular project and it will handle the webpack configuration.

Does Angular 11 use Webpack?

Link to this section. Yes you can use webpack 5 with Angular 11, but there are 2 things you need to keep in mind: This can be used if you are using yarn. Webpack 5 support is still experimental, so not suggested for production.


1 Answers

the latest version of angular-cli uses webpack see https://github.com/angular/angular-cli#webpack-update

like image 52
shusson Avatar answered Sep 22 '22 22:09

shusson