Files
wumpfetch/gulpfile.js
David Ralph d360bdcc07 More Improvements (see full info)
Here's what I did and why I did it:
* Remove README.md information about why use Wumpfetch - Users already know it's light from the start and from package phobia, no point adding extra unneeded information.
* Made gulpfile.js lighter - Made it like the other files
* Edit LICENSE - There was an unneeded gap
* Index.js modifications -  No longer does it hard code the package name and URL, making life easier for people forking it or using it in business. Also changed request to req to make it lighter!
* .gitignore edit - Removed unneeded "/"
* WumpRequest.js Improvements - Package name and URL are also no longer hard coded here, renamed consts to decrease file size.

Now under 10kb!
2019-04-11 18:28:38 +01:00

17 lines
389 B
JavaScript

const g = require('gulp');
const m = require('gulp-minify');
const c = require('gulp-concat');
g.task('build:node', () => {
return g
.src('dist/wumpfetch.concat.js')
.pipe(m({ noSource: true, ext: { min: '.min.js' } }))
.pipe(g.dest('dist'));
});
g.task('concat', () => {
return g
.src('lib/**/*.js')
.pipe(c('wumpfetch.concat.js'))
.pipe(g.dest('dist'));
});