mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
FS-8027 #resolve Add watchTask flag to browserSync and add proper regex for replacements
This commit is contained in:
parent
8dae8e9c21
commit
fd134000e7
@ -55,7 +55,7 @@ module.exports = function (grunt) {
|
|||||||
options: {
|
options: {
|
||||||
replacements: [
|
replacements: [
|
||||||
{
|
{
|
||||||
pattern: 'window.location.hostname',
|
pattern: /window\.location\.hostname/gi,
|
||||||
replacement: ip
|
replacement: ip
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -108,6 +108,7 @@ module.exports = function (grunt) {
|
|||||||
port: 9001,
|
port: 9001,
|
||||||
server: {
|
server: {
|
||||||
baseDir: ['.tmp', '../js/src/', config.app],
|
baseDir: ['.tmp', '../js/src/', config.app],
|
||||||
|
watchTask: true,
|
||||||
routes: {
|
routes: {
|
||||||
'/bower_components': './bower_components',
|
'/bower_components': './bower_components',
|
||||||
'/js/src': '../js/src'
|
'/js/src': '../js/src'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user