npm install postcss-pxtorem --save-dev 或者 bash yarn add postcss-pxtorem --dev 然后,在你的PostCSS配置文件中(通常是一个名为postcss.config.js的文件),你需要将插件添加到插件列表中: javascript module.exports = { plugins: [ require('postcss-p
npm install postcss postcss-prefix-selector --save-dev ``` 步骤2:配置postcss.config.js文件 在项目根目录下创建一个postcss.config.js文件,并添加以下内容: ```javascript const prefixer = require('postcss-prefix-selector'); module.exports = { plugins: [ prefixer({ prefix: '.my-prefix', // ...
Prefix all CSS rules with a selector. Latest version: 2.1.1, last published: 2 months ago. Start using postcss-prefix-selector in your project by running `npm i postcss-prefix-selector`. There are 131 other projects in the npm registry using postcss-pref