Jump to content

Matros

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Matros

  1. Hello,

    I was trying to make Browsersync work with Gulp to be able to see coding changes in real time. I installed Browsersync and Gulp successfully, created gulpfile.js and put this code in. What is wrong with this code?

    It does launch the server when I run command in terminal (browser-sync start --server --files "css/*.css"), but it doesn't reload or refresh when I make a change to a CSS file.


    var gulp = require('gulp');

    var browserSync = require('browser-sync').create();

    gulp.task('default', function() {

    // place code for your default task here

    browserSync.reload({

    proxy: "my_project.dev",

    files: "*.css,*.php,css/*css"

    });

    });

×
×
  • Create New...