SHARE
TWEET

Untitled

a guest Jul 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const browserify = require('browserify');
  2. const fs = require('fs');
  3. const gulp = require('gulp');
  4.  
  5. const packageJson = require('./package.json');
  6. // const dependencies = Object.keys( (packageJson && packageJson.dependencies) || {});
  7. const dependencies = ['roughjs/dist/rough.umd.js'];
  8.  
  9. gulp.task('default', () => {
  10.  
  11.   const b =
  12.   browserify({});
  13.   b.require( dependencies );
  14.   b.bundle()
  15.   .pipe( fs.createWriteStream('./dist/utils.js') );
  16.  
  17.   return b;
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top