-
-
Save kousherAlam/5eeab056ea0ac641422d7c62c130354a to your computer and use it in GitHub Desktop.
Webpack Dev Server + Browser Sync Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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