preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

Angular Cli : It's possible to use it? #310

Open biapar opened 7 years ago

biapar commented 7 years ago

Angular Cli : It's possible to use it?

arthur-melo commented 7 years ago

I guess it is possible to use it, but you will have to modify the default generated configuration file.

arthur-melo commented 7 years ago

Hey @Foxandxss, What do you think about adding Angular CLI to the project? Do you consider it to be bloat? The generators are great.

Foxandxss commented 7 years ago

This project had it in the past, but stopped working. I will ask the CLI team what can I get from that.

arthur-melo commented 7 years ago

Angular CLI RC.0 has a ng eject that disable some of its features and also separates the webpack config. Wouldn't that be useful for this project? I've managed to get the generators working.

GaryB432 commented 7 years ago

Hi team... not an issue really just a philosophical question. I am torn between this kind of starter which I have used and loved for months (years?). However I am seeing the CLI gain in popularity, in fact I was surprised to look into material2 a bit and see it assuming the CLI. Have you guys used preboot/angular and the CLI on various projects? Experienced both?

I think I would miss getting my hands dirty with the webpack config for example, and does the CLI support scss? Is it easy to add support like that to a CLI project? What kind of aspects of a project would lead one to the CLI as opposed to a bare-metal starter like this one?

Foxandxss commented 7 years ago

Good question Gary.

So I am both part of this starter (well, obvious) and part of the angular team.

The CLI is awesome and it is my major selling point when I teach Angular. And it is pretty much for the lack of webpack. That being said, if you like to mess with webpack, that is a hard decision.

CLI supports scss out of the box.

mcescalante commented 7 years ago

If you like the cli and want to manage webpack more yourself, a lot of people just mention to do ng eject which lets you manage your own webpack config while still using the features of the cli (a couple commands change to npm run instead of ng after ejecting). That said, of course it leaves more room for issues if you're not comfortable with webpack.