Answer the question
In order to leave comments, you need to log in
How to implement livereload in gulp if i use xampp?
I am using xampp my project is located at localhost/js_ob
how do i implement livereload when certain css js php files change
var gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
livereload = require('gulp-livereload');
//css
gulp.task('css', function () {
gulp.src('css/*.css')
.pipe(minifyCSS())
.pipe(gulp.dest('app2/'))
.pipe(connect.reload());
});
//php
gulp.task('php', function () {
gulp.src('index.php')
.pipe(connect.reload());
});
//watch
gulp.task('watch', function () {
gulp.watch('css/*.css', ['css']);
gulp.watch('index.php', ['php'])
});
//default
gulp.task('default', ['php','css','watch']);
Answer the question
In order to leave comments, you need to log in
I use two extensions browser-sync and gulp-ondemand-server. Read about them, so I set up a reload for Denver.
Google on request "how to press the footer to the bottom of the page"
There are many ways and they are all painted there.
If it doesn't work for you, post the code where you can see what doesn't work - we'll help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question