Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdehaan/gulp-jsmin
jsmin in gulp
https://github.com/pdehaan/gulp-jsmin
Last synced: 15 days ago
JSON representation
jsmin in gulp
- Host: GitHub
- URL: https://github.com/pdehaan/gulp-jsmin
- Owner: pdehaan
- Created: 2014-03-04T01:43:23.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-04T01:46:21.000Z (almost 11 years ago)
- Last Synced: 2024-10-31T13:13:43.423Z (2 months ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-jsmin
[![Build Status](https://travis-ci.org/chilijung/gulp-jsmin.png?branch=master)](https://travis-ci.org/chilijung/gulp-jsmin)
minify js using gulp.
## Install
Install with [npm](https://npmjs.org/package/gulp-jsmin)
```
npm install --save-dev gulp-jsmin
```## Example
```js
var gulp = require('gulp');
var jsmin = require('gulp-jsmin');
var rename = require('gulp-rename');gulp.task('default', function () {
gulp.src('src/**/*.js')
.pipe(jsmin())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('dist'));
});
```## API
### jsmin()
```
jsmin()
```## License
MIT [@chilijung](http://github.com/chilijung)