@moli0722/postcss-change-css-prefix

1.0.0 • Public • Published

postcss-change-css-prefix

a postcss plugin to change element-ui prefix

快速上手

npm i postcss-change-css-prefix -D


<!-- postcss.config.js -->
const addCssPrefix = require('postcss-change-css-prefix')

module.exports = {
  plugins: [
    addCssPrefix({
      prefix: 'el-',
      replace: 'gp-',
    }),
  ],
}

options

  1. prefix

    • type: string, 可选
    • 需要被替换的前缀
    • default: el-
  2. replace

    • type: string, 可选
    • 需要替换的前缀
    • default: gt-

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @moli0722/postcss-change-css-prefix

    Weekly Downloads

    4

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.95 kB

    Total Files

    6

    Last publish

    Collaborators

    • moli0722