tachyons-css / tachyons-build-css Goto Github PK
View Code? Open in Web Editor NEWTranspile Tachyons postcss to vanilla css
License: MIT License
Transpile Tachyons postcss to vanilla css
License: MIT License
See Avoid old CSS flexbox (Google Lighthouse) · Issue #9 · tachyons-css/tachyons-flexbox.
I would suggest either passing the flexbox: 'no-2009'
option to autoprefixer
in tachyons-css/tachyons-build-css.
Or maybe use luisrudge/postcss-flexbugs-fixes: PostCSS plugin that tries to fix all of flexbug's issues, since the build pipeline is already based on PostCSS (see philipwalton/flexbugs: A community-curated list of flexbox issues and cross-browser workarounds for them.).
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:
Line 5 in 55ba9af
Not even sure if it matters.
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.
Hey - I did this as an experiment - http://npm.im/tachyons-build-optimal-css
Allows for class filtering, so unused classes can be stripped out (also allows comment stripping)
Let me know if you want a PR - if so I'll do so, and deprecate the module
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()]
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.