You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Live reload is not working for me and I am using this sample taken from Cory House's Pluralsight course on React and Redux:
"use strict";vargulp=require('gulp');varconnect=require('gulp-connect');// Runs a local web servervaropen=require('gulp-open');// Open a URL in a web browservarconfig={port: 9005,devBaseUrl: 'http://localhost',paths: {html: './src/*.html',dist: './dist'}}// Start a local development servergulp.task('connect',function(){connect.server({root: ['dist'],port: config.port,base: config.devBaseUrl,livereload: true,debug: true});});gulp.task('open',['connect'],function(){gulp.src('dist/index.html').pipe(open('',{url: config.devBaseUrl+':'+config.port+'/'}));});gulp.task('html',function(){gulp.src(config.paths.html).pipe(gulp.dest(config.paths.dist)).pipe(connect.reload());});gulp.task('watch',function(){gulp.watch(config.paths.html,['html']);});gulp.task('default',['html','open','watch']);
The text was updated successfully, but these errors were encountered:
#71 I have the same problem but with Angular 2. React and Angular 2 have a reference to .css inside .js files. The "connect-livereload" works well only with <link rel="stylesheet" href="*.css" />
Live reload is not working for me and I am using this sample taken from Cory House's Pluralsight course on React and Redux:
The text was updated successfully, but these errors were encountered: