Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack #116

Closed
daniele-zurico opened this issue Dec 16, 2015 · 32 comments
Closed

Webpack #116

daniele-zurico opened this issue Dec 16, 2015 · 32 comments

Comments

@daniele-zurico
Copy link

Hi all,
I've just tried this well done project.
The only problem that I see is that it use SystemJS. There's any chance to have webpack as well?

@sgentile
Copy link

sgentile commented Jan 6, 2016

+1 for webpack

2 similar comments
@nileshmali
Copy link

+1 for webpack

@swestner
Copy link

+1 for webpack

@ansarizafar
Copy link

+100000 for Webpack

@mixomat
Copy link

mixomat commented Jan 19, 2016

+1 for webpack

@daniele-zurico
Copy link
Author

no news about that? just to know if it planned or not :)

@filipesilva
Copy link
Contributor

There aren't any plans for webpack right now, I believe. The build process is tightly tied into broccoli since that is what ember-cli uses.

Main priorities at the moment are getting the main user stories up and going, and only afterwards give some more thought to customizability.

That isn't to say you can't use webpack though! The scaffolding doesn't really care one way or another, neither do the tests. So basically you could very well use everything the cli has, minus ng serve.

Just add in your own webpack.config.js, npm dependencies, fire up webpack-dev-server and you're ready to go!

@filipesilva
Copy link
Contributor

(I'm closing this for now, but feel free to keep the discussion flowing.)

@mixomat
Copy link

mixomat commented Jan 28, 2016

I'm keen to to see the community acceptance of this project, without webpack scaffolding support ;)

@daniele-zurico
Copy link
Author

@filipesilva thanks for the reply, but the point is why you/they decide to use SystemJs instead Webpack?

@filipesilva
Copy link
Contributor

The CLI is mostly catering to the Typescript track at angular.io, which uses SystemJS. There is a section on the quickstart that touches on webpack:

There are alternatives that work just fine including the well-regarded webpack. SystemJS happens to be a good choice but we want to be clear that it was a choice and not a preference.

@nickroberts
Copy link
Contributor

FYI: https://angular.io/docs/ts/latest/guide/webpack.html

@sryzycki
Copy link

sryzycki commented Jul 4, 2016

+1

1 similar comment
@dennis-b
Copy link

+1

@systembugtj
Copy link

ember/ember-cli has its own philosophy and ecosystem. angular2 is totally different concept, angular-cli suppose to bring the smooth dev experience to angular2 not what ember-cli choose.

@zackarychapple
Copy link
Contributor

Just going to drop this here. https://github.com/angular/angular-cli/tree/webpack @TheLarkInn and a bunch of others have been working on the #webpack branch.

@summerisgone
Copy link

summerisgone commented Jul 22, 2016

Oh, I've almost missed out that! +1 for webpack :)

@alexjoverm
Copy link

Cool to see webpack coming into play. Is it known when (or which version) angular-cli will release webpack support?

@kylecordes
Copy link

I haven't seen the CLI team officially state a version or date yet; but I think for most practical purposes you can think of it as already being the "current" version: it seems like most people talking about CLI and staying up to date with it are already at webpack, and numerous old issues in this issue tracker have already been resolved because they pertain to the pre-webpack versions.

@alexjoverm
Copy link

I've just realised about this https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md

@Namek
Copy link

Namek commented Aug 9, 2016

is webpack config somehow hidden from us? Why? How do I plug in autoprefixer for my styles or 3rd party dependencies?

@TheLarkInn
Copy link
Member

@Namek we wanted an opinionated and already managed base configuration. We realize there are other tools and features to be added so we will hopefully have an 'escape-hatch' or 'eject button' for the future.

@dbushman
Copy link

dbushman commented Aug 9, 2016

So, @TheLarkInn, in that case is it possible to add a proxy url to the current version? The help files list
--proxy as an optional param for ng serve. But it doesn't seem like it's doing anything.

@SethDavenport
Copy link

An escape hatch will be important I think - the power of webpack is its flexibility. Otherwise I'm afraid you'll be inundated with 'I can haz loader/plugin x?' requests.

Allow me to start :)

"I can haz cssnext?"

However I can't say enough how much of an improvement the webpack version is over the SystemJS one.

@SethDavenport
Copy link

Actually just saw postcss in there. Ignore me.

@nikolasleblanc
Copy link

nikolasleblanc commented Aug 10, 2016

To @SethDavenport's point, it would be ideal to be able to load a custom webpack config at the project root that the cli-webpack imports to extend its base config. This would allow anyone to haz whatever they wanted, without mucking up the base config or having to fork off the original cli (hello "eject").

@TheLarkInn
Copy link
Member

I would seriously encourage anyone involved on this thread to come up with a design proposal for this. We have a half created one with me and @Brocco but currently we are focusing on MVP items at the moment. This is still IMO a great deliverable.

@nikolasleblanc
Copy link

Will take a look!

@nikolasleblanc
Copy link

nikolasleblanc commented Aug 11, 2016

Design proposal pending, but a quick sketch of the code might look like this:

nikolasleblanc@1e081a6

@nikolasleblanc
Copy link

My design proposal. @TheLarkInn, not super familiar with the format of design proposals, open to suggestions if you have any.

#1656

@migueldiganchi
Copy link

Does anybody know how to install angularfire2 after upgrade the angular-cli version to use the webpack bundler?

I am trying to follow the official repo steps to install angularfire2, but when I try to edit the 'angular-cli-build.js' file, I cannot find it.

Regards!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests