-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Version
3.0.0
Node and OS info
node 8.11.3 npm 5.6.0
Steps to reproduce
module.exports = {
chainWebpack: config => {
config.module
.rule('scss')
.test(/.scss$/)
.use('webpack-px-to-rem')
.loader('webpack-px-to-rem')
// .query({
// // 1rem=npx 默认为 10
// basePx:10,
// // 只会转换大于min的px 默认为0
// // 因为很小的px(比如border的1px)转换为rem后在很小的设备上结果会小于1px,有的设备就会不显示
// min:1,
// // 转换后的rem值保留的小数点后位数 默认为3
// floatWidth:3
// })
.end()
}
}
这里注释的query的选项不知道该怎么加,直接.query()会报错query is not a function
What is expected?
希望可以配置上query
What is actually happening?
直接.query()会报错query is not a function
Metadata
Metadata
Assignees
Labels
No labels