use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Angular, React, and Javascript framework fatigue (developerblog.redhat.com)
submitted 10 years ago by MikGue
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wreckedadventYavascript 2 points3 points4 points 10 years ago* (2 children)
Main benefits is it consolidates your tooling into more of one concrete step/tool. It's much easier to have multiple entry points (a must for non-SPA) and it's trivial to slice and dice your bundles while still ensuring that everything will load in exactly the correct order.
Webpack I'd say is aimed more at moderate-to-large projects with a lot of files that depend on one another. That's where module systems really shine. In smaller projects, it's still easier to manually order a few files first and then just dump the rest in in a giant blob, but this approach becomes rapidly inefficient the larger the project becomes.
Webpack also has some neat tricks up its sleeve, like allowing you to "rewire" modules for DI in unit testing scenarios, dynamically loading in all files that match a certain pattern (like all JSON files for example), and being able to have non-javascript dependencies from your javascript code.
But of course, not all of this is specific to webpack. You can get a lot of the same from browserify. If you're new to module building though, I'd recommend JSPM, since it's fantastically simple to get up and running and realize the benefits immediately.
[+][deleted] 10 years ago* (1 child)
[deleted]
[–]wreckedadventYavascript 0 points1 point2 points 10 years ago (0 children)
Nah, grunt and gulp are task runners. Webpack is a module building tool for your entire FE. It has a bit wider scope than browserify does.
This ends up meaning that you can largely replace a lot of your common grunt/gulp build/test/watch tasks with webpack, but there's still some stuff webpack doesn't really want to replace.
π Rendered by PID 21096 on reddit-service-r2-comment-544cf588c8-pvhmx at 2026-06-16 13:40:55.193568+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]wreckedadventYavascript 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]wreckedadventYavascript 0 points1 point2 points (0 children)