songsiqi / px2rem

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

nuxt 2.0 引入问题 #32

Closed Howie126313 closed 5 years ago

Howie126313 commented 5 years ago
  build: {
    extend(config, ctx) {
      config.module.rules.push({
        test: /\.css$/,
        loader: 'px2rem-loader',
        options: {
          remUnit: 16
        }
      })
 }

nuxt 2.0 引入后 rem 并没有动态适配不同的窗口大小,而变成了固定值