Skip to content

安装

sh
pnpm add @theojs/lumen
sh
npm install @theojs/lumen
sh
yarn add @theojs/lumen
弃用警告: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
ts
import { defineConfig } from 'vitepress'
export default defineConfig({
  vite: {
    css: { preprocessorOptions: { scss: { api: 'modern' } } }
  }
  ...
})
js
export default {
  css: { 
    preprocessorOptions: { scss: { api: 'modern' } }
  }
  ...
}

快速开始