cookingjs / cooking-autoprefixer

0 stars 1 forks source link

autoprefixer can't work in css #1

Open dujiaolong opened 7 years ago

dujiaolong commented 7 years ago

I modified cooking.conf.js like this: extends: { vue: true, autoprefixer: { cssnext: { browsers: ['last 2 versions'] } } } cooking build show loaded autoprefixer successfully,but in css can't see prefix 'webkit'

QingWei-Li commented 7 years ago

NOT cssnext.browsers

cooking.set({
  extends: [
    'vue',
    ['autoprefixer', {browsers: ['last 2 versions']}]
  ]
})
dujiaolong commented 7 years ago

extends: { vue: true, lint: true, sass: true, autoprefixer: { browsers: ['last 2 versions'] } } thx, I modified like this, it can't work, 'extends' must be array ?

QingWei-Li commented 7 years ago

https://github.com/ai/browserslist#queries

The webkit is present when using the default configuration, so you should check autoprefixer documentation;

  extends: {
    vue2: true,
    autoprefixer: {}
  }