1.0.1 • Published 1 year ago
postcss-add-css-prefix v1.0.1
postcss-add-css-prefix
a postcss plugin to add a custom prefix
快速上手
npm i postcss-add-css-prefix -D
<!-- postcss.config.js -->
const addCssPrefix = require('postcss-add-css-prefix')
module.exports = {
plugins: [
addCssPrefix({
prefix: 'app'
})
],
}
options
- prefix
- type: string, 必选
- 需要被添加的前缀
- default: -