Skip to content

v1.2.1

Compare
Choose a tag to compare
@Byloth Byloth released this 05 Feb 08:55
· 15 commits to master since this release
f33a99c

Patch release

Added the Vuert.js' module for Nuxt.js

To use it, simply install it as dependency in your Nuxt.js project...

npm install --save-dev @byloth/nuxt-vuert-module

... then add it in your nuxt.config.ts file:

export default defineNuxtConfig({
  /* [...] */

  modules: [
    /* [...] */

    "@byloth/nuxt-vuert-module"
  ],

  /* [...] */
})

You will be able to access the AlertHandler component and the useVuert composable without importing anything into your *.vue file... Nuxt.js will imports that for you automatically.

Also, you will able to access the Vuert.js active instance by simply using the syntax:

const { $vuert } = useNuxtApp();