https://github.com/julianxhokaxhiu/gulp-closurecompiler
The ClosureCompiler.js Gulp Task
https://github.com/julianxhokaxhiu/gulp-closurecompiler
Last synced: about 1 month ago
JSON representation
The ClosureCompiler.js Gulp Task
- Host: GitHub
- URL: https://github.com/julianxhokaxhiu/gulp-closurecompiler
- Owner: julianxhokaxhiu
- License: mit
- Created: 2014-10-30T14:02:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T19:39:43.000Z (over 6 years ago)
- Last Synced: 2025-02-28T19:45:44.827Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/gulp-closurecompiler
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-closurecompiler
====================The ClosureCompiler.js Gulp Task (port of https://github.com/dcodeIO/grunt-closurecompiler)
## Usage
First, install `gulp-closurecompiler` as a dependency:
```shell
npm install gulp-closurecompiler
```Then, add it to your `gulpfile.js`:
```javascript
var gulpCC = require("gulp-closurecompiler");gulp
.src( './src/*.js' )
.pipe(
gulpCC(
{
fileName: 'scripts.min.js'
},
{
// ClosureCompiler.js options here...
}
)
)
.pipe(
gulp.dest( './dest/' )
)
```## API
### gulp-closurecompiler( options, gccOptions )
#### options.fileName
Type: `String` (Required)The name of the file that you can want to be created
#### gccOptions
See [ClosureCompiler.js](https://github.com/dcodeIO/ClosureCompiler.js) options.## License
See [LICENSE](https://github.com/julianxhokaxhiu/gulp-closurecompiler/blob/master/LICENSE)