stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

Autoprefixer import fix in readme #12

Closed stmoreau closed 3 years ago

stmoreau commented 5 years ago

PR for #11

vpaulo commented 5 years ago

this worked for me

import { Config } from '@stencil/core';
import { less } from '@stencil/less';
import { postcss } from '@stencil/postcss';
import autoprefixer from 'autoprefixer';

export const config: Config = {
  namespace: 'IgComponents',
  outputTargets:[
    { type: 'dist' },
    { type: 'docs' },
    {
      type: 'www',
      serviceWorker: null // disable service workers
    }
  ],
  plugins: [
    less({
      injectGlobalPaths: [
        'src/globals/variables.less',
        'src/globals/mixins.less'
      ]
    }),
    postcss({
      plugins: [autoprefixer({ 
        browsers: ['last 3 versions', '> 1%', 'iOS >=7'] 
      })]
    })
  ]
};
claviska commented 3 years ago

Fixed in #20