Giter Site home page Giter Site logo

tachyons-build-css's Issues

Use `flexbox: 'no-2009'` or postcss-flexbugs-fixes to fix Flexbox issues

css-mqpacker is deprecated

Hey There!

Thanks so much for the great toolkit. It's teaching me a lot about postcss.

Please excuse me as I'm coming from SASS where everything's just done for you under the hood.

I was trying to understand which plugins tachyon used by default so that I could extend it for a WYSIWYG editor in a CMS theme, and I learned that css-mqpacker is deprecated. I'm not sure why, but I was able to find 'node-css-mqpacker' from the same author here: https://www.npmjs.com/package/node-css-mqpacker

We're using the deprecated package here:

const queries = require('css-mqpacker')

Not even sure if it matters.

BrowserslistError: Unknown browser query `dead`

I am trying to use tachyons with simple react based application.
When I run a command in my scripts like this tachyons src/css/index.css > src/index.css --minify
I see this error

/home/edd/work/testrepo/node_modules/tachyons-build-css/node_modules/caniuse-api/node_modules/browserslist/index.js:37
    throw new BrowserslistError(name);
    ^
BrowserslistError: Unknown browser query `dead`

As I understood the issue is connected with cssnano library.

Make postcss build pluggable

As discussed in #5 it'd be nice to be able to pass an optional array of additional postcss plugins. This would allow users to use additional plugins if they desire, while keeping the base Tachyons plugins simple.

Perhaps an API like the following:

tachyonsBuildCss('my css', {
  from: 'input.css',
  to: 'output.css',
  plugins: [my(), other(), plugins()]
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.