Select to view content in your preferred language

Missing `dist-prod` folder in ExB Dev Edition 1.18

147
2
a week ago
AndrewGilbert
Occasional Contributor

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?

 

 

0 Kudos
2 Replies
JunshanLiu
Esri Contributor

Can you try the "build:for-download" script? The output is in the "dist-download" folder

0 Kudos
AndrewGilbert
Occasional Contributor

`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`.

0 Kudos