Mojo Nuxt 模块
特性
- 👌 零配置即可开始
- ⚡️ 混合渲染:静态 CSS 生成 & 动态样式
快速设置
- 将
@mojocss/nuxt
依赖项添加到你的项目
# Using pnpm
pnpm add -D @mojocss/nuxt
# Using yarn
yarn add --dev @mojocss/nuxt
# Using npm
npm install --save-dev @mojocss/nuxt
- 将
@mojocss/nuxt
添加到nuxt.config.ts
的modules
部分
export default defineNuxtConfig({
modules: ["@mojocss/nuxt"],
});
就是这样! 你现在可以在你的 Nuxt 应用中使用 Mojo CSS 了 ✨