Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "vinyl-map", | ||
"description": "Map vinyl files' contents as strings, so you can easily use existing code without needing yet another gulp plugin!", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -46,12 +46,10 @@ # vinyl-map [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/vinyl-map&title=vinyl-map&description=hughsk/vinyl-map%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) # | ||
gulp.task('minify', function() { | ||
var minify = map(function(code, filename) { | ||
return uglify.minify(code, { fromString: true }) | ||
}) | ||
return gulp.src('index.js') | ||
.pipe(uglify()) | ||
.pipe(minify) | ||
.pipe(gulp.dest('./dist')) | ||
}) | ||
function uglify() { | ||
return map(function(code, filename) { | ||
return uglify.minify(code, { fromString: true }) | ||
}) | ||
} | ||
``` | ||
@@ -58,0 +56,0 @@ |
9794
78