Hey @Deal,
On the following
The above is a backend change (php config file). These configurations are cached, so for it to take effect you need to run php bin/console cache:clear
or one of the latest youtube videos they said that running repair and rebuild also works.
On the following:
I would not change the package.json
, that is not needed. Running yarn run build-dev:defaultExt --watch
should work just fine.
But this watch only applies to frontend changes, meaning “angular / typescript” changes. I.e. changes that you do within the extensions/defaultExt/app/src
folder.
You can check the configuration for extensions/defaultExt/app/src
on the angular.json
:
"sourceRoot": "extensions/defaultExt/app/src",
on
"defaultExt": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "extensions/defaultExt",
"sourceRoot": "extensions/defaultExt/app/src",
the above key defaultExt
, is the one that is referenced on the package.json
, where it says ng build defaultExt
"build-dev:defaultExt": "ng build defaultExt --configuration dev",
...
"build:defaultExt": "ng build defaultExt --configuration production",
So, when you run:
yarn run build:defaultExt
It is using the package.json
entry:
"build:defaultExt": "ng build defaultExt --configuration production",
And in turn the ng build defaultExt
is using the angular.json
entry:
The same applies to common
, core
and shell
.
They are just using what angular provides. The package.json
entries are just a shortcut.