Skip to main content
FarmFarm
Version: 1.x
On this page

@farmfe/plugin-sass

Support Sass for Farm.

Installation

javascript
npm install @farmfe/plugin-sass
javascript
yarn add @farmfe/plugin-sass
javascript
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.

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.

100%

Drag or pinch to explore. Keyboard: + / − zoom, arrows pan, 0 resets, Esc closes.