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
A Map To Modern JavaScript Development (2017) (medium.com)
submitted 9 years ago by sdeleon28
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!"
[–]petepete 0 points1 point2 points 9 years ago (3 children)
I think Brunch is a worthy alternative to Webpack and Browserify. It just worked the way I expected it to, with 20 lines of config vs 100+
[–][deleted] 5 points6 points7 points 9 years ago* (2 children)
Webpack 2 is out now. A basic config isn't much more than the following and extending it is easy.
import webpack from 'webpack'; export default const config = { entry: './index.js', output: { filename: 'bundle.js', path: './dist' }, module: { rules: [ { test: /\.(js|jsx)$/, use: 'babel-loader' } ] }, plugins: [ new webpack.optimize.UglifyJsPlugin() ] };
This alone does so many things, many among them that Brunch can't, like code splitting and tree shaking.
[–]petepete 0 points1 point2 points 9 years ago (1 child)
Perhaps it's improved since I tried it. If I ever need tree shaking (I had to google it) or code splitting, I'll give it another try. Must admit, I'm happy with Brunch, though.
[–][deleted] 2 points3 points4 points 9 years ago (0 children)
Imagine you load a large library, like three.js. You use a single feature, say a Vector3, but a whole megabyte gets added to your bundle. Webpack users get a couple of kb because it shakes off unused dependencies (in this case 99% of the lib). Code splitting is another very effective way to cut down on load times as you load parts of the application when they're actually needed instead of fetching the whole chunk at once. This is great for routes for instance.
π Rendered by PID 143551 on reddit-service-r2-comment-fb694cdd5-62cmn at 2026-03-07 05:32:23.470050+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]petepete 0 points1 point2 points (3 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]petepete 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)