Skip to content
Permalink
Browse files

fix(templateCache watch): fix dev build template cache watch

  • Loading branch information
jyounce committed Aug 17, 2016
1 parent 2e530ea commit c30e38f1cbe3ec23103f3d96a30a5070028a5dc7
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/config/configs/config-globs.coffee
@@ -252,13 +252,17 @@ module.exports = (config) ->
# browsersync
# ===========
addBrowserSync = -> # relative app dist client paths
distGlob = glob.dist.app.client.all
buildGlob = glob.dist.rb.client.all
bowerGlob = pathHelp.format path.join config.dist.app.client.bower.dir, '**'
nodeModsGlob = pathHelp.format path.join config.dist.app.client.dir, 'node_modules', '**'
distGlob = glob.dist.app.client.all
rbBowerDirName = config.dist.rb.client.bower.dirName
appBowerDirName = config.dist.app.client.bower.dirName
nodeModsGlob = '**/node_modules/**'
rbBowerGlob = "**/#{rbBowerDirName}/**"
appBowerGlob = "**/#{appBowerDirName}/**"
ignoreGlobs = [nodeModsGlob, rbBowerGlob]
ignoreGlobs.push appBowerGlob if appBowerDirName isnt rbBowerDirName
glob.browserSync =
files: [distGlob]
ignore: [buildGlob, bowerGlob, nodeModsGlob]
ignore: ignoreGlobs

addBrowserSync()

0 comments on commit c30e38f

Please sign in to comment.
You can’t perform that action at this time.