Using in Nuxtjs
Repository is here
如果你要在 Nuxtjs 中使用,安装以下模块:
Install
bash
npm install vue3-pixi vue3-pixi-nuxt
npm install vue3-pixi vue3-pixi-nuxt
bash
yarn add vue3-pixi vue3-pixi-nuxt
yarn add vue3-pixi vue3-pixi-nuxt
bash
pnpm add vue3-pixi vue3-pixi-nuxt
pnpm add vue3-pixi vue3-pixi-nuxt
Features
- Auto-import components and composable from the vue3-pixi
<Application>
client only, you don't need to add<ClientOnly />
- Automatically configures
isCustomElement
for vue compiler
Usage
Add vue3-pixi-nuxt
to the modules
section of nuxt.config.ts
ts
export default defineNuxtConfig({
modules: ['vue3-pixi-nuxt'],
})
export default defineNuxtConfig({
modules: ['vue3-pixi-nuxt'],
})
now, you can use vue3-pixi
in your Nuxt app