// Require our dependencies. var browsersync = require( 'browser-sync' ); var gulp = require( 'gulp' ); var filter = require( 'gulp-filter' ); var notify = require( 'gulp-notify' ); var plumber = require( 'gulp-plumber' ); /** * Process tasks and reload browsers on file changes. * * https://www.npmjs.com/package/browser-sync */ gulp.task( 'default', function() { // HTTPS (optional). browsersync( { proxy: 'https://showcase-pro.test', port: 8000, https: { "key": "/Users/sridharkatakam/.valet/Certificates/showcase-pro.test.key", "cert": "/Users/sridharkatakam/.valet/Certificates/showcase-pro.test.crt" } } ); // Reload browser when PHP files change. gulp.watch( [ '*.*', '*.php', '!*.css', '!.git/*', '!node_modules/*' ] ).on( 'change', browsersync.reload ); // Inject CSS changes. gulp.watch( '*.css', function() { gulp.src( '*.css' ) .pipe( browsersync.stream() ); } ); } );