Skip to content
Permalink
Browse files

fix(reload): windows fix for browser reload when creating a typescrip…

…t bundle
  • Loading branch information
jyounce committed Aug 16, 2016
1 parent 000e4c5 commit 563a32b5d4ec180c8183da6e11a5b96b0f996020
Showing with 19 additions and 7 deletions.
  1. +12 −3 src/config/configs/config-globs.coffee
  2. +7 −4 src/tasks/browser/browser-sync.coffee
@@ -249,9 +249,18 @@ module.exports = (config) ->
addNodeModulesDistAndSrc()
addNodeModules 'src'

# browser sync
# ============
glob.browserSync = pathHelp.format path.join pathHelp.format(config.dist.app.client.dir), lang.all
# 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', '**'
glob.browserSync =
files: [distGlob]
ignore: [buildGlob, bowerGlob, nodeModsGlob]

addBrowserSync()

# exclude rb server files
# =======================
@@ -49,12 +49,15 @@ module.exports =

setBsConfig: (config) ->
@bsConfig =
files: config.glob.browserSync
proxy: "http://localhost:#{config.ports.server}/"
port: config.ports.reload
ui: port: config.ports.reloadUI
browser: 'google chrome'
port: config.ports.reload
open: config.browser.open
files: config.glob.browserSync.files
proxy: "http://localhost:#{config.ports.server}/"
browser: 'google chrome'
reloadDebounce: 150 # windows fix for bundle reload
watchOptions:
ignored: config.glob.browserSync.ignore
@

# getters

0 comments on commit 563a32b

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