A
A
Alexander2014-10-19 15:50:56
gulp.js
Alexander, 2014-10-19 15:50:56

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

4 answer(s)
M
mr-zherart, 2014-10-19
@mr-zherart

I use two extensions browser-sync and gulp-ondemand-server. Read about them, so I set up a reload for Denver.

A
Ankhena, 2016-11-24
@Mr_Tabrest_3115

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.

S
Shad30, 2016-11-24
@Shad30

https://philipwalton.github.io/solved-by-flexbox/d...

D
dhat, 2016-11-25
@dhat

Called Sticky Footer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question