https://github.com/localvoid/gulp-jstyle
Gulp plugin for jstyle
https://github.com/localvoid/gulp-jstyle
Last synced: about 1 year ago
JSON representation
Gulp plugin for jstyle
- Host: GitHub
- URL: https://github.com/localvoid/gulp-jstyle
- Owner: localvoid
- License: mit
- Created: 2015-08-17T10:46:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-23T11:06:27.000Z (over 10 years ago)
- Last Synced: 2025-01-25T06:25:25.900Z (about 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-jstyle
[Gulp](http://gulpjs.com) plugin for
[jstyle](https://github.com/localvoid/jstyle).
## Install
```sh
$ npm install --save-dev gulp-jstyle
```
You also need to have [jstyle](http://github.com/localvoid/jstyle)
installed.
## Usage
```js
var gulp = require('gulp');
var jstyle = require('gulp-jstyle');
gulp.task('default', function () {
return gulp.src('css.js')
.pipe(jstyle({minifyClassNames: true}))
.pipe(gulp.dest('build'));
});
```
## API
### jstyle(options)
#### options
##### executable
Type: `String`
Default: `jstyle`
Path to `jstyle` executable.
##### minifyClassNames
Type: `Boolean`
Default: `false`
Minify class names and generate json map with minified names.
##### closureMap
Type: `Boolean`
Default: `false`
Generate javascript file with minified class names for google-closure
library.
##### closureMapPrefix
Type: `String`
Default: `css.map`
Package name prefix for closure map file.