Hacker News new | ask | show | jobs
by Bromlife 3601 days ago
Webpack config files are not JSON. They are full JavaScript.
1 comments

I haven't used webpack enough to be certain but AFAIK, like grunt, the config part is basically just JSON. Sure you can build your object dynamically, but it isn't something like gulp where you use functions to configure your project. In the end you're just exporting one big JSON-serializable object.