Skip to content

Commit f2216b2

Browse files
Merge pull request #30 from retyui/pathc
Fix overwrite middleware if proxy is String
2 parents f557a8e + ec3805a commit f2216b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/BrowserSyncDevHotWebpackPlugin.js

+9
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ class BrowserSyncDevHotWebpackPlugin extends EventEmitter {
9090
this.browserSyncURLUI = null;
9191
this.browserSyncURLUIExternal = null;
9292

93+
if (
94+
this.options.browserSync &&
95+
typeof this.options.browserSync.proxy === "string"
96+
) {
97+
const target = this.options.browserSync.proxy;
98+
99+
this.options.browserSync.proxy = { target };
100+
}
101+
93102
this.options.browserSync = merge.all([
94103
{
95104
proxy: {

0 commit comments

Comments
 (0)