@@ -11,7 +11,7 @@ like [browserify](http://browserify.org/) does.
1111## Features
1212- __ clarity:__ namespace CSS, no more need for naming schemes
1313- __ modularity:__ import and reuse CSS packages from npm
14- - __ extensibility:__ transform CSS using existing plugins , or write your own
14+ - __ extensibility:__ transform CSS using existing transforms , or write your own
1515- __ transparency:__ inline CSS in your views
1616- __ simplicity:__ tiny API surface and a minimal code base
1717
@@ -140,8 +140,8 @@ $ browserify index.js \
140140[ css-extract] [ 2 ] can also write to a stream from the JS api, look at the
141141documentation to see how.
142142
143- ## Plugins
144- Sheetify uses [ plugins ] ( #plugins ) that take CSS and apply a transform.
143+ ## Transforms
144+ Sheetify uses [ transforms ] ( #transforms ) that take CSS and apply a transform.
145145For example include
146146[ sheetify-cssnext] ( https://github.com/sheetify/sheetify-cssnext ) to support
147147autoprefixing, variables and more:
@@ -164,9 +164,9 @@ const tree = html`
164164document .body .appendChild (tree)
165165```
166166
167- Compile with browserify using ` -t [ sheetify -u sheetify-cssnext ] ` :
167+ Compile with browserify using ` -t [ sheetify -t sheetify-cssnext ] ` :
168168``` sh
169- $ browserify -t [ sheetify -u sheetify-cssnext ] index.js > bundle.js
169+ $ browserify -t [ sheetify -t sheetify-cssnext ] index.js > bundle.js
170170```
171171
172172Transforms the CSS into:
@@ -177,15 +177,11 @@ h1 {
177177}
178178```
179179
180- The following plugins are available:
181- - [ sheetify-cssnext] ( https://github.com/sheetify/sheetify-cssnext ) - use
182- tomorrow's CSS syntax today
183-
184180## API
185181Browserify transforms accept either flags from the command line using
186182[ subargs] ( https://github.com/substack/subarg ) :
187183``` sh
188- $ browserify -t [ sheetify -u sheetify-cssnext ] index.js > bundle.js
184+ $ browserify -t [ sheetify -t sheetify-cssnext ] index.js > bundle.js
189185```
190186
191187Or the equivalent options by passing in a configuration object in the
@@ -194,14 +190,14 @@ JavaScript API:
194190const browserify = require (' browserify' )
195191
196192const b = browserify (path .join (__dirname , ' transform/source.js' ))
197- b .transform (' sheetify' , { use : [ ' sheetify-cssnext' ] })
193+ b .transform (' sheetify' , { transform : [ ' sheetify-cssnext' ] })
198194b .bundle ().pipe (process .stdout )
199195```
200196
201197The following options are available:
202198``` txt
203199Options:
204- -u , --use Consume a sheetify plugin
200+ -t , --transform Consume a sheetify transform
205201```
206202
207203## FAQ
0 commit comments