@ls-design/rollup-plugin-css-variable

1.0.1 • Public • Published

用于自定义map传入的变量替换, 服务于@ls-design/ui

⚙️ 安装

npm install @ls-design/rollup-plugin-css-variable

🚀 使用

// rollup.config.ts

import { defineConfig } from 'rollup';
import cssVariable from '@ls-design/rollup-plugin-css-variable';
import variableMap from './global-css';


export default defineConfig({
  plugins: [
    variableMap, // 对象形式 { a: '#ccc' }
    prefix: 'ls-', // 识别到前缀替换,成上面variableMap的value
  ],
  ....
})

/@ls-design/rollup-plugin-css-variable/

    Package Sidebar

    Install

    npm i @ls-design/rollup-plugin-css-variable

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • luoge