FarmData2 / FarmData2

Main development repository for the FarmData2 Drupal module.
Other
1 stars 10 forks source link

Enable Vue devtools when running in farmOS #133

Closed braughtg closed 5 months ago

braughtg commented 8 months ago

Currently the Vue dev tools can be used when running in the dev server:

However, the Vue dev tools are not accessible when running the farmOS server:

Is there an easy way to enable the Vue DevTools when running inside of the farmOS server?

JingyuMarcelLee commented 7 months ago

It seems like the Vite production mode disables DevTool by default. I tried making changes to vite.config.js to enable vue devtool in production mode but it did not seem to work. There is an add-on on both Chrome and firefox called Vue-force-dev that force-enables vue devtool even under production mode. For firefox, it is available at https://addons.mozilla.org/en-US/firefox/addon/vue-force-dev/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search image Another option is to follow this tutorial and enable vue-devtool on the dev console. Both solutions worked.

braughtg commented 5 months ago

@JingyuMarcelLee Awesome find! I'm adding the Vue Force Dev to the development container so that it is installed into Firefox by default. I'll co-author you on the PR to the FarmData2-Images repo!

github-actions[bot] commented 5 months ago

:tada: This issue has been resolved in version 1.3.0-development.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 3 months ago

:tada: This issue has been resolved in version 1.3.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: