3 ms·
> Honestly though, starting from scratch, you can build a complex config (with all those things you mentioned) in about 30 minutes. If you're sticking to a pre
by seanwilson 9y ago
> Honestly though, starting from scratch, you can build a complex config (with all those things you mentioned) in about 30 minutes.
If you're sticking to a pre-built template or simple defaults maybe but once you start to customise things it's easy to get stuck in your own unique problems. Resolving path issues can easily eat up 30 minutes alone so I'd say you're severely underestimating.
> If you really need help then post it here or on stackoverflow and you'll get an answer pretty quick.
Once you've got your own unique combination of plugins going, it gets difficult to know where the problem is and you're less likely to get help if you've got something bigger than a minimal example. I know how to ask for help but there's just something about build system which makes it more challenging and more frustrating to get help compared e.g. typical programming problems.
- manigandham 9y agoI'm not sure why paths are such a big issue. The config object only needs the path to your applications entry file, and the path to where to put the output. All the paths within your app js (the import() statements) dont have anything to do with webpack and wouldn't run anyway if they were wrong. What other paths are you running into problems with? Also debugging this is just like any other app, start with 1 line at a time and see what changes. You can technically run it all inside of a debugger but that's a lot of setup so the old-school 1 change at a time + console.log() statements work well. Remember its just a single-file js app that produces an object.
- myspy 9y agoThe issue is that for the result there are too many variables and unknowns that complicate the most important thing. Writing the app and not taming the build process. Take Ember for example. It lacks the freedom to configure as you please but gets you going creating very fast.
- conradfr 9y agoIt is with the paths in your styling (images, fonts) which by default are checked and rewritten during compilation (which fails if he can't find the files).