Skip to content

安装

sh
pnpm add @theojs/solis
sh
npm install @theojs/solis
sh
yarn add @theojs/solis
弃用警告: 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' } }
  }
  ...
}

快速开始