gulp-livereload

Gulp tasks chaining

a 夏天 提交于 2021-02-10 08:44:34
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Gulp tasks chaining

六月ゝ 毕业季﹏ 提交于 2021-02-10 08:42:53
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Gulp to watch when node app.listen() is invoked or to port (livereload, nodejs and gulp)

纵然是瞬间 提交于 2019-12-22 08:46:42
问题 I am trying to get gulp-livereload to work with my nodejs server. I am using gulp-nodemon to restart the server after changes to the files, this works. I am having trouble invoking livereload.reload() at the correct time. I am currently invoking livereload.reload() on the .on('start'... in my gulpfile.js (whenever my nodemon starts a script). This works but it takes a few seconds. The reason is when nodemon starts to run the nodejs script it invokes livereload.listen() before the script has

Gulp-connect shows an error 'listen EADDRINUSE' 8080

非 Y 不嫁゛ 提交于 2019-12-12 18:32:45
问题 I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js:I have a simple gulpfile.js var gulp = require('gulp'); var less = require('gulp-less'); var nodemon = require('gulp-nodemon'); var watch = require('gulp-watch-less'); var path = require('path'); var bower = require('gulp-bower'); var livereload = require('gulp-livereload'); var connect = require(

Gulp to watch when node app.listen() is invoked or to port (livereload, nodejs and gulp)

╄→гoц情女王★ 提交于 2019-12-05 17:39:44
I am trying to get gulp-livereload to work with my nodejs server. I am using gulp-nodemon to restart the server after changes to the files, this works. I am having trouble invoking livereload.reload() at the correct time. I am currently invoking livereload.reload() on the .on('start'... in my gulpfile.js (whenever my nodemon starts a script). This works but it takes a few seconds. The reason is when nodemon starts to run the nodejs script it invokes livereload.listen() before the script has invoked app.listen(port) , so my browser refreshs without the server being ready. Is there a way to

Gulp css styles are not updated

做~自己de王妃 提交于 2019-12-02 17:54:22
问题 I have problem. Yestrday I had to update the Node.js kernel and now that I change something in the LESS file, there will be no css update. Gulpfile is the same as before the update. Could someone advise me what's wrong with my gulpfile script? The HTML file update is OK. //*********** IMPORTS ***************** var gulp = require('gulp'), browserSync = require('browser-sync'); var postcss = require('gulp-postcss'); var less = require('gulp-less'); var watch = require('gulp-watch'); var

Gulp css styles are not updated

女生的网名这么多〃 提交于 2019-12-02 07:44:53
I have problem. Yestrday I had to update the Node.js kernel and now that I change something in the LESS file, there will be no css update. Gulpfile is the same as before the update. Could someone advise me what's wrong with my gulpfile script? The HTML file update is OK. //*********** IMPORTS ***************** var gulp = require('gulp'), browserSync = require('browser-sync'); var postcss = require('gulp-postcss'); var less = require('gulp-less'); var watch = require('gulp-watch'); var livereload = require('gulp-livereload'); var autoprefixer = require('gulp-autoprefixer'); var concat = require

Gulp Livereload server not starting

╄→гoц情女王★ 提交于 2019-11-28 05:34:35
问题 I am attempting to get gulp working with livereload. Gulp is not in control of the webserver itself (the actual web app is a php site. When I run nmap on the server I don't see livereload working, and the chrome extension indicates the same thing. Here is my gulp task: gulp = require 'gulp' {livereload} = require('gulp-load-plugins')() gulp.task 'watch', ['styles'], -> livereload.listen() gulp.watch './public/include/less/**/*.less', ['styles'] gulp.watch('./public/include/css/**/*.css').on(