Vheissu / aurelia-for-real-world-web-applications-book-feedback

Post feedback as issues here on Github for the Aurelia book. Be as descriptive and honest as you like.
15 stars 0 forks source link

Consider webpack #3

Closed opcodewriter closed 8 years ago

opcodewriter commented 8 years ago

Consider showing using webpack too. I heard that JSPM being really slow http://blog.dripstat.com/why-we-switched-from-jspm-to-webpack/ Moreover please see https://github.com/aurelia/skeleton-navigation/issues/41

Vheissu commented 8 years ago

At present Webpack isn't officially supported with Aurelia. When it is though, definitely worth adding into the book. So until it lands, I might hold off on this. I am yearning for Webpack support with Aurelia.

Vheissu commented 8 years ago

Now that there is an official solution for Webpack, I am going to update the next release with how to use it now I have played with it a little bit.

Vheissu commented 8 years ago

This missed out on the latest release. However next release hopefully.

wshayes commented 8 years ago

Some things I'm uncertain about with webpack - how to pull github/file (e.g non-npm) packages in, how to make sure CSS is loaded in the correct order, shimming modules that aren't setup correctly, where are the dragons - e.g. what problems is one likely to run into on an Aurelia project.

Vheissu commented 8 years ago

@wshayes There are definitely quite a few differences when it comes to using Webpack in comparison to TypeScript and Babel based on my experience changing over. I think this definitely needs to be its own section because there are a few things the user needs to know from how packages are installed and handled, working with packages that expose globals like jQuery, aliases, CSS load order and more.

wshayes commented 8 years ago

Really looking forward to this chapter. I was delighted by the build performance of the webpack skeleton and ease of use. Hoping to switch over, but I'm a bit concerned about the dragons in these uncharted waters. Anything you can do to help would be wonderful. Even in your chapter pointing out some of the better tutorials and documentation - though the documentation is much better than the JSPM documentation.

Vheissu commented 8 years ago

Touched upon Webpack in the latest release. Please let me know if I missed anything or something isn't clear, please let me know.