Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Temas de WordPress + Gulp + Browsersync
- Compilar código LESS
- Añadir vendor prefixes
- Minificar código CSS resultante
- Observar los archivos para ejecutar las tareas de forma automática
- Recargar automáticamente el navegador
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
cleancss = require('gulp-clean-css'),
rename = require('gulp-rename'),
less = require('gulp-less'),
browserSync = require('browser-sync').create();
gulp.task('servir', ['estilos'], function(){
proxy: 'cursogulp.local',
open: false
});'./less/**/*.less', ['estilos']);['./*.php','./inc/*.php','./template-parts/*.php']).on('change', browserSync.reload);
gulp.task('estilos', function(){
return gulp.src('./less/app.less')
.pipe(less().on('error', function(err){
browsers: ['last 4 versions']
gulp.task('default', ['servir']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.