3 ms·
Webpack config files are not JSON. They are full JavaScript.
by Bromlife 10y ago
Webpack config files are not JSON. They are full JavaScript.
- leppr 10y agoI 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.