Created
September 20, 2018 00:11
-
-
Save fernandiez/2404260bda1135c989914fd0be2596e5 to your computer and use it in GitHub Desktop.
Archivo de configuración Gulp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Gulp.js configuration | |
| 'use strict'; | |
| const | |
| // source and build folders | |
| dir = { | |
| src : 'src/', | |
| build : '/themebuild/' | |
| }, | |
| // Gulp and plugins | |
| gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| newer = require('gulp-newer'), | |
| imagemin = require('gulp-imagemin'), | |
| sass = require('gulp-sass'), | |
| postcss = require('gulp-postcss'), | |
| deporder = require('gulp-deporder'), | |
| concat = require('gulp-concat'), | |
| stripdebug = require('gulp-strip-debug'), | |
| uglify = require('gulp-uglify') | |
| ; | |
| // Browser-sync | |
| var browsersync = false; | |
| // PHP settings | |
| const php = { | |
| src : dir.src + 'template/**/*.php', | |
| build : dir.build | |
| }; | |
| // copy PHP files | |
| gulp.task('php', () => { | |
| return gulp.src(php.src) | |
| .pipe(newer(php.build)) | |
| .pipe(gulp.dest(php.build)); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment