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-px2rem破坏了sourceMap的源文件名称 #22

Open
rouberg opened this issue Feb 12, 2018 · 0 comments
Open

postcss-px2rem破坏了sourceMap的源文件名称 #22

rouberg opened this issue Feb 12, 2018 · 0 comments

Comments

@rouberg
Copy link

rouberg commented Feb 12, 2018

vue项目。当开启CSS sourceMap时,没有使用postcss-px2rem时,chrome中查看Hello.vue的样式,样式的源的名称会显示为:Hello.vue? [sm]:18 这样,但是在postcss.config.js里配置postcss-px2rem后,px转换成rem是可以,但是样式的源的名称会显示为这样: <input css 10>:1

postcss.config.js配置如下:

module.exports = {
  plugins: {
    'postcss-px2rem': {
      remUnit: 14
    }
  }
}

不知道这是不是在设计之中。以及,可以优化么。

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