Transpile Tachyons PostCSS to vanilla CSS
JavaScript
Latest commit 078e103 Nov 1, 2016 @mrmrs mrmrs 1.1.4
Permalink
Failed to load latest commit information.
test Don't trim trailing zeros Sep 20, 2016
.editorconfig Hello, world Jul 7, 2016
.gitignore Hello, world Jul 7, 2016
.travis.yml Adjust travis config Jul 7, 2016
index.js Don't trim trailing zeros Sep 20, 2016
license Hello, world Jul 7, 2016
package.json 1.1.4 Nov 1, 2016
readme.md Fix minor README issue Oct 5, 2016

readme.md

tachyons-build-css Build Status js-standard-style

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 = require('fs')
const tachyonsBuildCss = require('tachyons-build-css')

const input = fs.readFileSync('input.css', 'utf8')

tachyonsBuildCss(input, {
  from: 'input.css',
  to: 'output.css',
  minify: true
}).then(result => {
  fs.writeFileSync('output.css', result.css)
})

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

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.