Live data from Hacker News

Getting Started with Webpack 2

blog.madewithenvy.com

1–10 of 59 posts

Re: Getting Started with Webpack 2

#3
post #2

What is the difference from Webpack 1? This tutorial seems identical to every other Webpack getting started I've read.

I guess most of the changes are 'under the hood', but there are some breaking changes in configuration as well.

"loaders" => "rules" etc.

http://javascriptplayground.com/blog/2016/10/moving-to-webpa...

Re: Getting Started with Webpack 2

#4
Interestingly, things seem to be settling down in the JS community. In the past, every time a library lacked a particular feature, the community suddenly abandoned it. At the same time, every new version release had all sorts of horrible breaking changes, that made upgrading a very scary task.

Now, the JS community seems to be thinking more about stability and backwards compatibility. That's very welcome, at least from the perspective of this grumpy server-side developer.

Re: Getting Started with Webpack 2

#7
post #2

What is the difference from Webpack 1? This tutorial seems identical to every other Webpack getting started I've read.

I think the biggest addition is ES2015 modules.

Webpack now understands them without the need to convert them to commonjs/amd.

import works statically (before the JS is run), which allows webpack to make some optimizations.

(System.import() is used for dynamic (runtime) imports)

Re: Getting Started with Webpack 2

#9
I currently use gulp and, over the yars, have found many ways to do my own parsing and smart caching and stuff over, like checking and bumping version numbers, conditional compiling, caching assets etc.

I'd hate to loose all that, but I do see the advantages of Webpack. How much control do I have with Webpack though? Can I still write my own hooks?

Post reply on HN