Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kousherAlam/5eeab056ea0ac641422d7c62c130354a to your computer and use it in GitHub Desktop.
Save kousherAlam/5eeab056ea0ac641422d7c62c130354a to your computer and use it in GitHub Desktop.
Webpack Dev Server + Browser Sync Config
new BrowserSyncPlugin({
host: 'localhost',
port: 3001,
proxy: 'http://localhost:8081/',
files: [{
match: [
'**/*.hbs'
],
fn: function(event, file) {
if (event === "change") {
const bs = require('browser-sync').get('bs-webpack-plugin');
bs.reload();
}
}
}]
}, {
reload: false
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment