@farmfe/plugin-sass
Support Sass for Farm.
Installationâ
- npm
- yarn
- pnpm
npm install @farmfe/plugin-sass
yarn add @farmfe/plugin-sass
pnpm add @farmfe/plugin-sass
Usageâ
@farmfe/plugin-sass is a Rust plugin, you only need to configure its package name in plugins field in farm.config.ts.
import { UserConfig } from '@farmfe/core';
const config: UserConfig = {
plugins: ['@farmfe/plugin-sass', { /** options here */}]
}
Optionsâ
additionalDataâ
- Type:
string
Add extra content to the head of each sass file, such as an @import '@/styles/variables.scss'; statement.
