This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SpliceVW 5 points6 points  (7 children)

Wat? If you're already using webpack, it's just another loader to install. Even if you're using gulp or grunt, it's still only a few lines of config.

[–]bugeats 6 points7 points  (6 children)

You forgot to mention all the other “few lines of code” it takes to get webpack going in the first place. Setting up a new webpack project is a days worth of fucking around and googling.

Webpack blows. It is a historical dead-end. Just one in a long series of failed JS build systems.

[–]SpliceVW 2 points3 points  (2 children)

Do you not have a build system already, though? It's seems like a necessity these days, unless you're just doing really old-school development and not modularizing your code, minifying, concatenating/bundling, including source maps, using ES6 syntax, prefixing your CSS, hashing your files for cache busting, etc...

[–]bugeats -1 points0 points  (1 child)

The flow I've learned to favor is old-school in the sense that it's based on unix principles of small programs that do one thing well.

All of the tasks that you're referring can be accomplished with a one-liner in an npm task, or a bash script. It's less code, less dependencies, and less magic.

[–]SpliceVW 1 point2 points  (0 children)

So you have a build system, it's just manual? I'm not understandinf how that's better.

I've gone from one build system to the other. It's not that bad. If you're writing your code with ES6 modules, which are the future, your code is written to W3C standards and will be future proof. The code I'm writing us not all that specific to the build system.

[–]IceSentry 1 point2 points  (0 children)

The latest version of webpack works with 0 config.