livereload

Grunt Livereload not showing HTML changes

僤鯓⒐⒋嵵緔 提交于 2020-01-24 23:59:05
问题 On my MEAN stack application, I'm trying make changes to the HTML view files and see those changes as I make them using Grunt's livereload. Grunt's livereload is working fine in the sense that it detects changes in my HTML files and refreshes the page during development. However, the actual changes are not reflecting on the page. If I push the files up the server, and reload the publicly available site, the changes are there. But I still can't see the changes while I'm developing. I'm 99%

How do I install LiveReload on Sublime Text 3?

拥有回忆 提交于 2020-01-09 12:25:22
问题 I'm using Sublime Text 3 and want to use LiveReload. I have a browser plugin for Chrome already installed. Node.js is also installed. For Sublime Text 3 Live Reload this plugin must be installed: https://github.com/dz0ny/LiveReload-sublimetext2 How can I install it on Windows 7? It just says something about Linux and OSX users. 回答1: Platform I used: Linux Mint 17+ I want to thank http://anthozano.fr/livereload-pour-sublime-text-3/. I was able to run live reload on sublime text 3 with the

How do I install LiveReload on Sublime Text 3?

廉价感情. 提交于 2020-01-09 12:25:02
问题 I'm using Sublime Text 3 and want to use LiveReload. I have a browser plugin for Chrome already installed. Node.js is also installed. For Sublime Text 3 Live Reload this plugin must be installed: https://github.com/dz0ny/LiveReload-sublimetext2 How can I install it on Windows 7? It just says something about Linux and OSX users. 回答1: Platform I used: Linux Mint 17+ I want to thank http://anthozano.fr/livereload-pour-sublime-text-3/. I was able to run live reload on sublime text 3 with the

grunt watch no longer refreshes Chrome when using custom open connect config via https

半世苍凉 提交于 2020-01-06 10:52:50
问题 I just started up a new yo angular scaffolding and tried to configure grunt-contrib-connect to open a custom ssl domain name instead of localhost:9000. The custom domain is proxy_pass'd from https://api/ to http://localhost:9000 using nginx. grunt-contrib-connect and grunt-contrib-watch are updated to 0.7.1 and 0.6.1, respectively. The new setting works fine on initial launch ( grunt serve ), but now html/css/js/etc changes no longer trigger a browser reload. What else do I need to change?

Livereload isn't working in gulp

穿精又带淫゛_ 提交于 2020-01-02 00:58:07
问题 I used gulp-webapp (generator from yeoman) and add some other tasks (like gulp-sass & gulp-coffee). But now Livereload isn't starting. I need to see something like this [gulp] Live reload server listening on: 35729 But output looks like ➜ app git:(master) ✗ gulp watch [gulp] Using gulpfile ~/Dev/lsd/app/gulpfile.js [gulp] Starting 'clean'... [gulp] Starting 'styles'... [gulp] Starting 'scripts'... [gulp] Starting 'connect'... [gulp] Finished 'connect' after 68 ms Started connect web server on

Grunt 之 watch 和 livereload

喜欢而已 提交于 2019-12-31 09:14:23
现在 watch 中已经集成了 livereload ,所以把它们放在一起说明。 watch 可以监控特定的文件,在添加文件、修改文件、或者删除文件的时候自动执行自定义的任务,比如 livereload 等等。 1. 安装 项目定义在 GitHub 上,地址: https://github.com/gruntjs/grunt-contrib-watch 可以通过 NPM 直接进行安装 npm install grunt-contrib-watch --save-dev 安装之后,需要在 Gruntfile.js 中添加任务的注册。 grunt.loadNpmTasks('grunt-contrib-watch'); 通过 grunt watch 运行 watch 任务。 2. 配置 watch 与 connect 类似,在 watch 下面定义自己的子任务,下面的示例将会监控 src 目录下的任意 *.html 文件,在文件被修改之后,输出被修改的文件名。 这里通过 watch 的事件进行处理。 'use strict'; module.exports = function (grunt) { // Project configuration. grunt.initConfig({ watch:{ start:{ files: ['src/*.html'] } } });

Grunt 之 watch 和 livereload

戏子无情 提交于 2019-12-31 09:14:05
Grunt 之 watch 和 livereload 现在 watch 中已经集成了 livereload ,所以把它们放在一起说明。 watch 可以监控特定的文件,在添加文件、修改文件、或者删除文件的时候自动执行自定义的任务,比如 livereload 等等。 1. 安装 项目定义在 GitHub 上,地址: https://github.com/gruntjs/grunt-contrib-watch 可以通过 NPM 直接进行安装 npm install grunt-contrib-watch --save-dev 安装之后,需要在 Gruntfile.js 中添加任务的注册。 grunt.loadNpmTasks('grunt-contrib-watch'); 通过 grunt watch 运行 watch 任务。 2. 配置 watch 与 connect 类似,在 watch 下面定义自己的子任务,下面的示例将会监控 src 目录下的任意 *.html 文件,在文件被修改之后,输出被修改的文件名。 这里通过 watch 的事件进行处理。 'use strict'; module.exports = function (grunt) { // Project configuration. grunt.initConfig({ watch:{ start:{ files:

Get livereload to work with Sails.js

别等时光非礼了梦想. 提交于 2019-12-29 06:25:17
问题 I am new to both Sails and grunt so I might be missing the obvious. I am trying to automatically refresh my sails app in the browser whenever files change . I start the app with sails lift and it runs on the default port 1337 . I tried adding options: {livereload:true} to my grunt-contrib-watch configuration but as far as I understand I need to somehow inject the livereload JavaScript into my page? I tried to use grunt-contrib-connect with the livereload option to inject the JavaScript but it

Sublime Text 3 Settings: Save Twice

主宰稳场 提交于 2019-12-25 10:26:08
问题 I am not sure if this is the correct place to ask this or not, if it's not please let me know where would be the right place. There is a well known issue with LiveReload for Sublime Text in which the changes are not shown unless you save twice. I'm wondering if there is a way to edit the settings to have ST automatically save twice when you hit save. 回答1: You can override the default keybinding to instead save twice. In order to do that you will need a way to call the "save" command more than

Sublime Text 3 Settings: Save Twice

自作多情 提交于 2019-12-25 10:26:03
问题 I am not sure if this is the correct place to ask this or not, if it's not please let me know where would be the right place. There is a well known issue with LiveReload for Sublime Text in which the changes are not shown unless you save twice. I'm wondering if there is a way to edit the settings to have ST automatically save twice when you hit save. 回答1: You can override the default keybinding to instead save twice. In order to do that you will need a way to call the "save" command more than