alpine-collective / alpinejs-devtools

Chrome/Firefox DevTools extension for debugging Alpine.js applications.
MIT License
533 stars 19 forks source link

Disable on production #355

Closed Krato closed 2 years ago

Krato commented 2 years ago

Hello, I know that Alpine doesn't have anything to specify "production mode" like Vue and others do.

But is there some way to disable AlpineDevtools?

Thanks

HugoDF commented 2 years ago

If you're using v3 and import Alpine without setting it as a global (so don't use the CDN build), the devtools won't detect Alpine (since they just look for the global).