This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Description
I joyfully set up the multiple Webpack bundles configuration like this:
"bundles": {
"js": [
{
"name": "credit",
"src": "web/themes/wd/assets/components/molecules/credit/credit.js"
},
{
"name": "app",
"src": "web/themes/wd/assets/components/base.js"
}
]
}
And the build doesn't crash anything and just continues building the app bundle as if nothing was wrong.
I should have written a path relative to the src value:
"bundles": {
"js": [
{
"name": "credit",
"src": "components/molecules/credit/credit.js"
},
{
"name": "app",
"src": "components/base.js"
}
]
}
Since all the paths in toolbox.json are written from the project root, I never imagined that was the wrong thing to do:
"images": [
"web/themes/wd/build/images/**/*"
],
So, we should either keep it like this (and then document why the path is relative to src), or change this to be consistent with the rest of the config. Cheers!