doiuse icon indicating copy to clipboard operation
doiuse copied to clipboard

Add link to browserslist docs to readme

Open thany opened this issue 8 years ago • 8 comments

I'm missing browser query documentation.

I have no way of knowing what sort of syntax the browser query supports, what browser names it knows, and how to specify which (if any) versions to test against.

So can we please have some documentation on this?

thany avatar Mar 09 '17 13:03 thany

doiuse makes use of the browserslist package here: https://github.com/ai/browserslist

I'd be happy to accept a PR adding this to the docs.

On Thu, Mar 9, 2017 at 8:23 AM thany [email protected] wrote:

I'm missing browser query documentation.

I have no way of knowing what sort of syntax the browser query supports, what browser names it knows, and how to specify which (if any) versions to test against.

So can we please have some documentation on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anandthakker/doiuse/issues/63, or mute the thread https://github.com/notifications/unsubscribe-auth/AEvmR5sG_ks7U_KDkpOx_hcXm5b-Xnefks5rj_1jgaJpZM4MYE12 .

anandthakker avatar Mar 09 '17 13:03 anandthakker

@anandthakker can you release a version of doiuse to npm that supports this? I don't think what's in npm has this code.

stevewillard avatar Mar 14 '17 01:03 stevewillard

Just published 2.6.0 -- thanks for the heads up @stevewillard

anandthakker avatar Mar 14 '17 11:03 anandthakker

Since doiuse now uses browserslist to resolve the targeted browsers, a reference to the browserslist docs in the readme should be enough. A PR is welcome.

ismay avatar Jun 20 '17 11:06 ismay

doiuse": "^3.0.0" doesn't work with .browserslistrc as other postcss plugins by default

postcss.config.js:

  plugins: {
    stylelint: {},
    'postcss-import': {},
    'postcss-url': {},
    'css-mqpacker': {},
    // lost: {},
    'postcss-cssnext': {},
    precss: {},
    cssnano: {
      zindex: false,
      autoprefixer: false
    },
    doiuse: {},
    'postcss-browser-reporter': {},
    'postcss-reporter': {
      throwError: false,
      clearReportedMessages: true
    }
  }

AuthorProxy avatar Jul 09 '17 18:07 AuthorProxy

It seems like it's not picking up my browserslist section of my package.json either.

I have an explicit "not ie 10" rule, and still getting rem (root em) units only partially supported by: IE (10) (rem) wherever I use rem.

browserlist itself doesn't even seem to respect it's own query language docs, so it might not be a doiuse issue, lol. "not ie 10" passes the browser list query, so who knows

lallmon avatar Sep 15 '17 20:09 lallmon

v4.0.0 still does not detect a .browserslistrc file nor package.json configuration.

niftylettuce avatar Feb 25 '18 22:02 niftylettuce

v4.0.0 still does not detect a .browserslistrc file nor package.json configuration.

Any update on this?

equinusocio avatar May 19 '20 11:05 equinusocio