tachyons-build-css
Transpile Tachyons PostCSS to vanilla CSS. This build process also removes comments, autoprefixes, and has options for minifying the output or repeating class selectors (to play nice with overly specific CSS frameworks).
Installation
npm install --save-dev tachyons-build-css
Usage
const fs = const tachyonsBuildCss = const input = fs
If you want more control, but want the plugins used here, you can get them with the getPlugins
function
const getPlugins = const plugins =
Options
Option | Default | Description | Values |
---|---|---|---|
from |
undefined |
The input file name | file name |
to |
undefined |
The output file name | file name |
minify |
false |
Minify the output CSS | true , false |
repeat |
false |
Whether to repeat classes in selectors | false , 1..10 |
plugins |
false |
Additional postcss plugins | [my(), other(), plugins()] |
atImport |
{} |
Options for postcss-import |
postcss-import options |
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.