songsiqi / px2rem

According to one stylesheet, generate rem version and @1x, @2x and @3x stylesheet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于npm的Readme中的示例书写失误的问题

waldonUB opened this issue · comments

您好,在npm中您的示例代码为

module.exports = { // ... module: { rules: [{ test: /\.css$/, use: [{ loader: 'style-loader' }, { loader: 'css-loader' }, { loader: 'px2rem-loader', // options here options: { remUni: 75, remPrecision: 8 } }] }] } }

其中remUni应该改为您github中的示例remUnit。今天刚好看到其他社区也有人反应设置unit不生效的问题,在这里顺便提一下。