提交 fd134000 authored 作者: João Mesquita's avatar João Mesquita

FS-8027 #resolve Add watchTask flag to browserSync and add proper regex for replacements

上级 8dae8e9c
...@@ -55,7 +55,7 @@ module.exports = function (grunt) { ...@@ -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) { ...@@ -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'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论