包装:@tsparticles/nuxt2
tsParticles 的官方 Nuxt 2 模块包装器。
安装
bash
pnpm add @tsparticles/nuxt2 @tsparticles/engine @tsparticles/slim快速设置流程
1.安装模块+引擎+加载包。2. 在 Nuxt 配置中注册模块,仅供客户端使用。3. 通过组件/模块配置提供选项。
Monorepo 参考资料
- 包文件夹:https://github.com/tsparticles/tsparticles/tree/main/wrappers/nuxt2
- 演示应用程序:https://github.com/tsparticles/tsparticles/tree/main/demo/nuxt2
