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'
})
],
}
- prefix
- type: string, 可选
- 需要被添加的前缀
- default: package.name