DevTools
Under construction 🚧
Installation
Install mute8 plugins
npm i mute8-plugins
Usage
Import
import { DevTools } from 'mute8-plugins'
Register store
const router = newStore({
value: { ... },
actions: { ... },
plugin: DevTools.register("router")
})
How to enable?
- Async import
If your build target supports top-level await, you can simply call
await DevTools.import()
at the top of the index file.
import { DevTools } from 'mute8-plugins'
await DevTools.import()
- Load script through bundler.
import "https://paweljastrzebski.github.io/mute8/devtools/v1.mjs"
- Insert the script into the HTML head.
<script type="module" src="https://paweljastrzebski.github.io/mute8/devtools/v1.mjs" ></script>
How to open?
Press [Ctrl + Shift + 8] in your application window to open the DevTools dialog.