Re:Webpack 4 course: What is Webpack?
by gedy on Monday July 16, 2018 @06:13AM
(#17540059)
I hear this trope here a lot, always seems to gloss over what webpack improved on, which is replacing bespoke build scripts for web projects. Also that it greatly reduced the ye olde tradition of coding to the least common denominator subset of features that runs on all browsers. Webpack was and is awesome for that.
[ Parent
| on HN ]
Re:Webpack 4 course: What is Webpack?
by lucisferre on Monday July 16, 2018 @09:48AM
(#17541201)
> coding to the least common denominator subset of features that runs on all browsers
Did Webpack do that or did Babel?
Babel. Webpack is just a glue. An over complicated glue.
> replacing bespoke build scripts for web projects
Does it, though? No project of moderate complexity will be able to reuse a Webpack config. Conversely, how large of a problem was this for simple sites?
I still use shell scripts for moving assets around and build sass, I use webpack for the TypeScript/dependency managment (via yarn).
I looked at doing it with webpack but frankly 2 lines of bash that'll work the same in a decade vs haha no wasn't a hard choice.