5 ms·
Smart defaults, allow configurations. That's the key. I learned how to use Webpack but still think it sucks and it's incredibly complicated for what it does fo
by sergiotapia 10y ago
Smart defaults, allow configurations. That's the key.
I learned how to use Webpack but still think it sucks and it's incredibly complicated for what it does for 90% of use cases.
Smart defaults. -Then- let me configure if I need to.
- mtrpcic 10y agoI solved this by keeping my Webpack build process in it's own repository, with a JSON file that dictates entry and exit points for builds. When doing a new frontend project, I use git submodules to import my build pipeline and just change a few variables and I'm set.
- matallo 10y agoThis sounds a lot like Grunt.
- thelarkinn 10y agoTotally understand, now that webpack 2 is almost out the door, this is one of our top 5 overhauls we want to make. "Can we make smarter defaults" We support a lot of build targets and are agnostic to library and stack so it's going to be a challenge but with your help and the community I know we can get it done.
- bpicolo 10y agoAn alternative is a command line tool that could combine bits: webpack-make --scss --hot-middleware --blah or something, potentially?
- thelarkinn 10y agoDo I have a github issue for you!!!! This is a feature tons of people ask for all the time so this week I officially marked it as RFC. https://github.com/webpack/webpack/issues/3466 https://github.com/webpack/webpack/issues/3466 Since the core team needs to focus on implementing more opt features like rollup and better top level minification, we left this for a chunk of our contribute team to help design and come up with. Help always wanted!!!
- bpicolo 10y agoHah, nice. Sounds like you guys are pretty on top of things :) Afraid I'm not nearly caught up on webpack best practices to take a good whack at it, hah
- ch4s3 10y agoI love how you turn up immediately whenever someone mentions webpack!
- thelarkinn 10y agoWell, as one of the maintainers besides working on core, and loaders/plugins, my role is to rep the voice of all of you to the core team, and also the other way around. Just here to help :)
- ch4s3 10y agoYou're doing a great job! Keep it up!
- emmelaich 10y ago> Smart defaults, allow configurations but also please have those discoverable. I've come to hate the word default because people have a different idea of what it means. Is it a site default, an app default, per-instance default ...? Which one applies? Apps should document at runtime what the values are and where they come from.