zambezi / ez-build

Zambezi build tool
MIT License
2 stars 1 forks source link

--target-browsers is being ignored in the context of postcss #51

Closed DimitarChristoff closed 7 years ago

DimitarChristoff commented 7 years ago

When running with:

--target-browsers \"Firefox >=44,Chrome >=48,IE >=9,last 2 version\"

it should pass this to autoprefixer in the postcss stage

export default function configure(pkg, opts) {
  const cc = postcss([cssimport, cssnext])
      , map = opts.debug? { inline: false } : false

this does not take into account opts.targetBrowsers

const cc = postcss([cssimport, cssnext({browsers: opts.targetBrowsers}])

Currently, used in js here:

https://github.com/zambezi/ez-build/blob/aaac92b52a911cc1b1eae278fa5cc51dd2627ffc/src/builder/javascript.js#L43-L55