Merge pull request #423 in FS/freeswitch from ~JMESQUITA/freeswitch:bugfix/FS-8027-make-grunt-serve-ip-to-work-correctly to master

* commit 'fd134000e764a612c2e3db5b9a22338bdfc905a9':
  FS-8027 #resolve Add watchTask flag to browserSync and add proper regex for replacements
This commit is contained in:
Brian West 2015-08-24 08:36:23 -05:00
commit bd371f4def
1 changed files with 2 additions and 1 deletions

View 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'