SHARE
TWEET

Untitled

a guest Apr 20th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const {task, src, dest, series} = require('gulp');
  2. const concat = require('gulp-concat');
  3. const minify = require('gulp-minify');
  4. const origen_css = [
  5.     'static/dev/*.min.css'
  6. ];
  7. const origen_js = [
  8.     'node_modules/**/dist/jquery.min.js',
  9.     'node_modules/**/dist/vue.min.js',
  10.     'static/dev/*.min.js'
  11. ];
  12. const destino = 'static/dist/';
  13. let options = {objectMode: true};
  14.  
  15. task('build_js', () => {
  16.     return src(origen_js)
  17.         .pipe(concat('bundle.js'))
  18.         .pipe(dest(destino))
  19. });
  20.  
  21. task('build_css', () => {
  22.     return src(origen_css)
  23.         .pipe(concat('bundle.css'))
  24.         .pipe(dest(destino))
  25. });
  26.  
  27.  
  28. task('default', series(['build_js', 'build_css']));
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