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-',
}),
],
}
-
prefix
- type: string, 可选
- 需要被替换的前缀
- default: el-
-
replace
- type: string, 可选
- 需要替换的前缀
- default: gt-