TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Webpack 2.2 – Release Candidate

197 pointsby thelarkinnover 8 years ago

10 comments

scrollawayover 8 years ago
Looking at the list of changes (<a href="https:&#x2F;&#x2F;webpack.js.org&#x2F;guides&#x2F;migrating&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webpack.js.org&#x2F;guides&#x2F;migrating&#x2F;</a>), it seems like a lot of &quot;magic&quot; has been removed.<p>That&#x27;s good. It&#x27;s kinda funny how this is a very frequent pattern: Build something full of magic and, as you grow more mature and hit pain points, end up removing the magic.<p>I&#x27;ve had a very similar experience in my career so far as a dev. My code used to be full of magic, auto-guessing things based on how methods are named, etc. I&#x27;ve moved away from that, it wastes more time than it saves.<p>Anyone else with the same experience?
评论 #13180514 未加载
评论 #13180467 未加载
评论 #13180367 未加载
评论 #13180946 未加载
评论 #13180746 未加载
评论 #13180343 未加载
评论 #13180296 未加载
评论 #13180986 未加载
评论 #13180395 未加载
评论 #13185285 未加载
评论 #13180444 未加载
评论 #13180322 未加载
评论 #13181389 未加载
评论 #13184047 未加载
tonyhbover 8 years ago
Recently moved to this from webpack 1 for both personal projects and work. Webpack 2 combined with Yarn running inside of Docker to automate builds is the nicest (and fastest) frontend build pipeline I&#x27;ve had yet.<p>The experience with Webpack2 is so much better:<p><pre><code> - Cleaner documentation - Saner configuration files: - It errors out if you add incorrect flags! - This means that postcss et. al. use config files - Saner module definitions (now called rules): - No query flags! - Actual object support! </code></pre> Plus tree shaking, code splitting etc. It&#x27;s way better. Now looking forward to integrating babili within webpack to remove uglify.<p>If you&#x27;re thinking of upgrading it&#x27;s not that much effort given the new documentation, too. Definitely worthwhile, and there seems to be less occasional build bugs using this with newer babel plugins (originally switched because of a crazy stackoverflow parsing a two-deep object).
评论 #13183811 未加载
评论 #13180862 未加载
fiatjafover 8 years ago
This thing is so complicated and so full of magic and options and the documentation is so shallow, I can&#x27;t find examples, can&#x27;t get a tutorial that isn&#x27;t uselessly superficial.<p>I&#x27;ve tried using Webpack in its begginings, because React people only talked in Webpack terms, but then switched back to Browserify, which is simple, not magical and straightforward. I tried using Webpack again lately, with the bizarre Gatsby static site generator, and the failures are enourmous. I can&#x27;t even understand how exactly does a loader work. Gatsby makes forced use of something called webpack-config or something like that, which is just a useless abstraction on top of the already confusing Webpack config.<p>Please, someone explain to me what does this thing do that Browserify can&#x27;t.
评论 #13181202 未加载
评论 #13180724 未加载
评论 #13182201 未加载
评论 #13180784 未加载
评论 #13182342 未加载
评论 #13181290 未加载
评论 #13181752 未加载
ctulekover 8 years ago
It is hard to find well maintained JS libraries in these days. Thanks a lot for the mature work done here, especially in terms of documentation. So many OS projects launch their new shiny versions in such a rush, they leave their users in darkness for a very long time.
评论 #13180586 未加载
msoadover 8 years ago
One big question I have from Webpack is this:<p>In age of HTTP&#x2F;2 packing is not recommended anymore but I love so many features of Webpack, are you guys going to adopt to HTTP&#x2F;2 paradigms?<p>Great work, thanks!
评论 #13182088 未加载
评论 #13182089 未加载
mstijakover 8 years ago
webpack is great. HMR and code-splitting are killer features. Only thing that I&#x27;m worried about is tree shaking. There are a couple of long standing issues about problems with classes and export all statements. Rollup is missing code-spliting, webpack doesn&#x27;t do tree shaking well and complains about bundle sizes. Not sure what to do. If somehow rollup could be integrated, that would be perfect.
评论 #13181207 未加载
评论 #13181778 未加载
ahayterover 8 years ago
Thank goodness I decided to bite the bullet last week and make the jump to v2. Upgrade took a while but was rather painless thanks to the great migration guide on the new documentation site.<p>If you are using a ton of loaders that aren&#x27;t v2 ready you may have a more painful experience, you&#x27;ll have to get familiar with the LoaderOptionsPlugin.<p>If you&#x27;re newish to webpack it could be a frustrating experience.<p>Shout out to the webpack team though, It&#x27;s an impressive tool.
评论 #13183726 未加载
julenxover 8 years ago
Reading through the Webpack2 release tags I came across the v2.1.0-beta28 changelog, which mentions:<p>&gt; * add `import()` as Code Splitting construct. It should be used instead of `System.import` when possible. `System.import` will be deprecated in webpack 2 release (removed in webpack 3) as it&#x27;s behavior is incorrect according to the spec.<p>I was under the impression `System.import` would be the new way to do code splitting and hence supersede `require.ensure()`. After further checking, now it seems like the function-like `import()` will be used instead [1], which is better accepted in browsers than `System.import()`.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;releases&#x2F;tag&#x2F;v2.1.0-beta.28" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;releases&#x2F;tag&#x2F;v2.1.0-beta....</a> [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;issues&#x2F;3098" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;issues&#x2F;3098</a>
sotojuanover 8 years ago
We have an ejected CRA web pack confit that I wanna update to 2 eventually. What&#x27;s a good migration guide?
评论 #13181926 未加载
评论 #13181927 未加载
te_chrisover 8 years ago
Quick, time for Laravel Elixir to find another beta version to bundle before an actual release happens...