eruda-vue / vue-devtools /packages /docs /src /guide /custom-vue2-app-scan-selector.md
soiz1's picture
Upload folder using huggingface_hub
4d70170 verified
|
raw
history blame
431 Bytes

Customize vue2 app scan selector

For example, if you are using micro-app as your micro-frontend framework, the devtools cannot find Vue2 apps in <micro-app> by default.

You can set a custom selector used to scan for Vue2 apps in your project with the following code in your frontend app:

if (process.env.NODE_ENV !== 'production') {
  window.VUE_DEVTOOLS_CONFIG = {
    customVue2ScanSelector: 'micro-app'
  }
}