anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.24k stars 51 forks source link

Add link to browserslist docs to readme #63

Open thany opened 7 years ago

thany commented 7 years ago

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?

anandthakker commented 7 years ago

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 notifications@github.com 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 .

stevewillard commented 7 years ago

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

anandthakker commented 7 years ago

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

ismay commented 7 years ago

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.

AuthorProxy commented 7 years ago

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
    }
  }
lallmon commented 7 years ago

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

niftylettuce commented 6 years ago

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

equinusocio commented 4 years ago

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

Any update on this?