songsiqi / px2rem

According to one stylesheet, generate rem version and @1x, @2x and @3x stylesheet.
558 stars 92 forks source link

px2rem-loader 不能运用到 vue 文件中,使用时报错 #3

Closed AnyGong closed 8 years ago

AnyGong commented 8 years ago

按照官方的语法推荐,去用,失效。

[{ test: /\.vue$/, loader: vue.withLoaders({css: 'css!px2rem?remUnit=75&remPrecision=8'})}]

ReferenceError: vue is not defined

songsiqi commented 8 years ago

@AnyGong 你用的vue-loader是什么版本?

AnyGong commented 8 years ago

@songsiqi 我在这里提了,已解决了我的问题,是因为vue-loader升级的问题 https://github.com/Jinjiang/px2rem-loader/issues/4,tks!