3 ms·
The problem with Webpack is that if you want to do something that's not straightforward[1] or covered in the dozen tutorials that are on the web, you're going t
by rkwz 11y ago
The problem with Webpack is that if you want to do something that's not straightforward[1] or covered in the dozen tutorials that are on the web, you're going to have a hard time.
The docs are very basic and there are so many configuration params.
If you want to do something that's not covered in tutorials or boilerplates, be prepared to spend a ridiculous amount of time reading Webpack PRs, issues and the codebase.
Webpack does a great job and it's a nice concept but it has very bad documentation.
[1] Isomorphic apps, or multiple builds for i18n etc
- amelius 11y ago> The problem with Webpack is that if you want to do something that's not straightforward[1] or covered in the dozen tutorials that are on the web, you're going to have a hard time. I really hate systems that are built like that. Nobody should build software like that. I just want simple tools with a clear API that I can combine together and easily replace by other tools, like in the Unix tradition. I guess it is a case of "LEGO versus Playmobil". The former allows modularity, while the latter is just complex crap that allows you to do nothing other than what the instructions say.
- igl 11y agoWebpack does not glob-search against the filesystem like grunt/gulp/brunch/broccoli/make. If you look for that: Sorry, webpack does not "replace" simple tools like that. Think of it as a tool executing require.extensions at build time. It's not operating on files as much as it's looking directly at the source-code AST. That makes it more complex to get into over the glob tools but it's worth it. It's also just as modular as anything else: http://npmsearch.com/?q=loader%20AND%20keywords:webpack http://npmsearch.com/?q=loader%20AND%20keywords:webpack
- johnieeboy 11y agoFunny enough, if you look at the comments for pretty much the landing page of web pack you get the same sentiment http://webpack.github.io/docs/what-is-webpack.html http://webpack.github.io/docs/what-is-webpack.html
- petejodo 11y agoYeah I agree with most of the sentiment but I let it by when you go to the github repo and check out contributor statistics. Pretty much it's just sokra doing everything and he does it in his free time last I heard. I think webpack is missing the support it needs in regards to how much it's actually getting used.
- rhinoceraptor 11y agoI could not for the life of me get Webpack to bundle '.json' files that were require()d by some library code I was using. Of course, this functionality comes out of the box with Browserify.