Skip to main content
Version: 1.0.0

@farmfe/plugin-yaml

Inspired By @rollup/plugin-yaml

🍣 A Farm plugin which Converts YAML files to ES6 modules.

Installation​

npm install @farmfe/plugin-yaml

Usage​

farm.config.ts

import { defineConfig } from '@farmfe/core';

export default defineConfig({
plugins: [
[
'@farmfe/plugin-yaml',
{
documentMode: 'single' | 'multi', // default single
include: Regex, // default None,
exclude: Regex, // default None
},
],
],
});

notice:

include or exclude is Regex not glob For example **/01.yaml is not illegal。What is right is like ".*\\/01.yaml"

Extremely Fast Web Build Tool Written in Rust

Copyright © 2024 Farm Community. Built with Docusaurus.