In Experience Builder Developer Edition version 1.18, I notice the dist-prod folder is not created when I run npm run build:prod, and my builds are going to dist only.
In ExB 1.17, package.json has this:
"scripts": {
...
"build:prod": "cross-env NODE_ENV=production OUTPUT_FOLDER=./dist-prod webpack --mode production",But in ExB 1.18, notice that OUTPUT_FOLDER=./dist-prod is missing:
"scripts": {
...
"build:prod": "cross-env NODE_ENV=production webpack --mode production",I don't see any documentation of this change. Is it expected that now both the dev and prod builds go to the same location, and the dist-prod folder is obsolete?
Solved! Go to Solution.
@AndrewGilbert when you run npm run build:prod, the widgets are built to the dist folder, and the dist-prod will not be used anymore. The reason why we made this change is to support shared-code folder. We support only one shared-code folder, and it must be in the dist folder, so all widgets must be in the dist folder.
Can you try the "build:for-download" script? The output is in the "dist-download" folder
`npm run build:for-download` works. The `dist-download` folder was created, and the Simple widget appears to have built to `dist-download\widgets\simple`.
@JunshanLiu, just following up on this. Thanks.
@AndrewGilbert when you run npm run build:prod, the widgets are built to the dist folder, and the dist-prod will not be used anymore. The reason why we made this change is to support shared-code folder. We support only one shared-code folder, and it must be in the dist folder, so all widgets must be in the dist folder.