kimroen / ember-cli-autoprefixer

Automatically run your styles through autoprefixer
MIT License
103 stars 25 forks source link

targets.js is still not acknowledged #55

Open amk221 opened 4 years ago

amk221 commented 4 years ago

Related: https://github.com/kimroen/ember-cli-autoprefixer/issues/47

Here is an example repo.

The repo has no .browserslistrc, therefore, according to ember-cli-autoprefixer's README, the browser list defined in targets.js will be used.

The example app contains some simple CSS div { display: flex }

The targets.js file contains a browsers list of just: ['ie 10'].

When ember build --environment=production is run, one would expect to see the following output:

div {display:-ms-flexbox; display:flex }

...but it is not.

Creating a .browserslistrc.js with ie 10 does produce the correct output (so that's fine).

I went down a dependancy rabbit hole of ember-cli-autoprefixer -> broccoli-autoprefixer -> autoprefixer -> postcss -> browserlist

but I am non-the-wiser.