Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置postcss插件写成对象形式无法传入参数 #15

Open
fantasy525 opened this issue Jul 26, 2017 · 1 comment
Open

配置postcss插件写成对象形式无法传入参数 #15

fantasy525 opened this issue Jul 26, 2017 · 1 comment

Comments

@fantasy525
Copy link

fantasy525 commented Jul 26, 2017

我写成这个形式配置postcss插件就没办法传入px2rem的参数,

var px2rem = require('postcss-px2rem');

module.exports = {
      "plugins": {
        // to edit target browsers: use "browserslist" field in package.json
        "autoprefixer": {},
        "postcss-px2rem": px2rem({remUnit: 100})
   } 
}

postcss-px2rem版本:0.3.0

@fantasy525
Copy link
Author

之前的写法有问题,写成这样子就没问题了

module.exports = {
"plugins": {
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {},
"postcss-px2rem": {
     remUnit: 100
   }
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant