- 🐥 adds support for webpack configs that return a function instead of an object literal. In order to accomplish that the dependency-cruiser.json format grew a
webpackConfig
key in the options section that allows for specifying (1) the config file name (2) any environment parameters (3) any other (webpack) command line arguments that might be of interest (all optional). E.g.
...
"options": {
"webpackConfig": "webpack.config.js",
"env": { "production": true },
"arguments": { "mode": "production" }
}
...
or
...
"options": {
"webpackConfig": "webpack.config.js",
"env": "production",
"arguments": { "mode": "production" }
}
...