From fd134000e764a612c2e3db5b9a22338bdfc905a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Mesquita?= Date: Sat, 22 Aug 2015 22:28:20 -0300 Subject: [PATCH] FS-8027 #resolve Add watchTask flag to browserSync and add proper regex for replacements --- html5/verto/verto_communicator/Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html5/verto/verto_communicator/Gruntfile.js b/html5/verto/verto_communicator/Gruntfile.js index cd900b4a20..0361ce3daf 100644 --- a/html5/verto/verto_communicator/Gruntfile.js +++ b/html5/verto/verto_communicator/Gruntfile.js @@ -55,7 +55,7 @@ module.exports = function (grunt) { options: { replacements: [ { - pattern: 'window.location.hostname', + pattern: /window\.location\.hostname/gi, replacement: ip } ] @@ -108,6 +108,7 @@ module.exports = function (grunt) { port: 9001, server: { baseDir: ['.tmp', '../js/src/', config.app], + watchTask: true, routes: { '/bower_components': './bower_components', '/js/src': '../js/src'