https://github.com/seangenabe/sheetify-jstransformer
jstransformer plugin for sheetify.
https://github.com/seangenabe/sheetify-jstransformer
Last synced: 7 months ago
JSON representation
jstransformer plugin for sheetify.
- Host: GitHub
- URL: https://github.com/seangenabe/sheetify-jstransformer
- Owner: seangenabe
- License: mit
- Created: 2016-10-20T14:59:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-26T19:07:27.000Z (almost 8 years ago)
- Last Synced: 2024-04-23T17:24:25.394Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# sheetify-jstransform
[jstransformer](https://www.npmjs.com/package/jstransformer) plugin for [sheetify](https://www.npmjs.com/package/sheetify).
## Usage
Example usage in [browserify](https://www.npmjs.com/package/browserify):
```javascript
b.transform('sheetify/transform', {
use: [
'sheetify-jstransformer',
{
use: require('jstransformer-autoprefixer')
}
]
})
```Multiple transformers to apply serially to the source:
```javascript
b.transform('sheetify/transform', {
use: [
'sheetify-jstransformer',
{
use: [
require('jstransformer-less'),
require('jstransformer-autoprefixer')
]
}
]
})
```### Options
* `use`: The transformer, or array of transformers, to use. *Required.*
An element of or the single value of `use` may be:
* A transformer instance
* An array `[transformer, opts, optsCb]` with:
* `transformer` - The transformer instance
* `opts` - Options to pass to the transformer.
* `optsCb(opts, filename)` - A function that can transform options to possibly incorporate the filename; return the new options to pass to the transformer. Default: identity function## See also
* [jstransformer-sheetify](https://www.npmjs.com/package/jstransformer-sheetify) - The other way around.