Skip to content

Commit

Permalink
Browser should be refreshed after changes in project files by default #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Oct 20, 2017
1 parent a5bcda0 commit 656d71c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 12 additions & 1 deletion build/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,18 @@ module.exports = merge({
browserSync: {
host: 'localhost',
port: 3000,
proxy: 'http://localhost:8080/'
proxy: 'http://localhost:8080/',
open: false,
reloadDelay: 500,
files: [
"*.php",
"app/**/*.php",
"resources/templates/**/*.php",
"resources/assets/js/**/*.js",
"resources/assets/sass/**/*.{sass,scss}",
"resources/assets/images/**/*.{jpg,jpeg,png,gif,svg}",
"resources/assets/fonts/**/*.{eot,ttf,woff,woff2,svg}"
]
}
}
}, config)
6 changes: 5 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ if (config.settings.styleLint) {
*/
if (config.settings.browserSync) {
module.exports.plugins.push(
new BrowserSyncPlugin(config.settings.browserSync)
new BrowserSyncPlugin(config.settings.browserSync, {
// Prevent BrowserSync from reloading the page
// and let Webpack Dev Server take care of this.
reload: false
})
)
}

Expand Down

0 comments on commit 656d71c

Please sign in to comment.