Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Created November 8, 2014 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cecilemuller/c626703ed4d8d67aa689 to your computer and use it in GitHub Desktop.
Save cecilemuller/c626703ed4d8d67aa689 to your computer and use it in GitHub Desktop.
Gulp task that compresses VRML files
var gulp = require('gulp');
var gzip = require('gulp-gzip');
gulp.task('vrml', function(){
'use strict';
gulp.src('src/**/*.wrl')
.pipe(gzip({
append: false,
gzipOptions: {
level: 9
}
}))
.pipe(gulp.dest('./www'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment