You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2022. It is now read-only.
so grunt will not update the config.json file in directory:
\server\apps#\widgets\WidgetName
You must copy the config_WidgetName.json then use it to replace the config.json in the widget development folder. then remember to update the app's "main" config.json to point to the correct location of the config_widgetname.json file:
Maybe we should solve this by having the grunt task automatically copy widgets/MyWidget/config.json to apps/Z/configs/MyWidget/config_MyWidget.json when it detects changes. Would that solve the problem here?
That would probably be the best approach. I should add that I experienced this when using the generator for 2D apps and widgets. I have yet to try 3D maps and widgets so I don't know if the behavior has has changed for both.
I think I'm late, but add some lines to the Gruntfile.js file, specifically inside the copy key sample: { src: 'widgets/widgetname/config.json', dest: appDir + '/configs/widgetname/config_widgets_widgetname_Widget_id.json'}
If you have a better solution please let me know. 👍
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
current WAB dev edition saves a widgets config.json file in:
\server\apps#\configs\WidgetName\config_widgetname.json
so grunt will not update the config.json file in directory:
\server\apps#\widgets\WidgetName
You must copy the config_WidgetName.json then use it to replace the config.json in the widget development folder. then remember to update the app's "main" config.json to point to the correct location of the config_widgetname.json file:
The text was updated successfully, but these errors were encountered: