套件
@master/css.astro@master/css.astro
Integrate Master CSS in Astro way
Installation
npm i @master/css.astro@rc
import { defineConfig } from 'astro/config'import masterCSS from '@master/css.astro' export default defineConfig({ integrations: [ masterCSS() ]})
API Reference
options
The options
object extends the VitePluginOptions and is passed to the @master/css.astro
integration. It allows you to configure the behavior of the integration.
import { defineConfig } from 'astro/config'import masterCSS from '@master/css.astro'export default defineConfig({ integrations: [ masterCSS({ mode: 'extract' }) ]})
import { PluginOptions, options as defaultPluginOptions } from '@master/css.vite'const options: IntegrationOptions = defaultPluginOptionsexport default optionsexport declare type IntegrationOptions = PluginOptions