]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8027 #resolve Add watchTask flag to browserSync and add proper regex for replacements
authorJoão Mesquita <jmesquita@indicium.com.ar>
Sun, 23 Aug 2015 01:28:20 +0000 (22:28 -0300)
committerJoão Mesquita <jmesquita@indicium.com.ar>
Sun, 23 Aug 2015 01:28:20 +0000 (22:28 -0300)
html5/verto/verto_communicator/Gruntfile.js

index cd900b4a2023257add45b9331b85b31df94abb8d..0361ce3dafc46c6d041b9e61514a4fd2e8251227 100644 (file)
@@ -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'