Select to view content in your preferred language

utils extension for several widgets

351
2
07-27-2022 04:57 AM
henrilebon974
Occasional Contributor

Hello,

I want to create an utils folder to create some utils modules. I create it in the folder .\client\your-extensions. It works when I develop my widgets but when I want to export the application the extensions folder is not compiled and the widgets can not import it by relative path.

henrilebon974_0-1658922750374.png

 

I import the extension like this :

henrilebon974_1-1658923013383.png

 

 

0 Kudos
2 Replies
henrilebon974
Occasional Contributor

Some body has an experience with that ?

0 Kudos
henrilebon974
Occasional Contributor

The solution is modify the html file exported.

henrilebon974_0-1659019056621.png

Add this line underlined.

henrilebon974_1-1659019148442.png

And copy the folder extensions from ".\client\dist"

henrilebon974_2-1659019218969.png

 

Into the subfolder in the cdn folder in the application exported.

henrilebon974_3-1659019256816.png

 

I guess ESRI could create a better way to do that in the futur version of experience builder developer edition.

 

 

 

0 Kudos