Last active
August 12, 2022 13:55
-
-
Save christopher4lis/3358d92395d686375c50f7ebb218f1dc 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