Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 1cbc0ad

Browse files
author
Eimantas Dumse
committed
contentBase is depricated, changed to proxy instead.
1 parent 0ebdb95 commit 1cbc0ad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • packages/webpack-builder-plugin-web-dev/src

packages/webpack-builder-plugin-web-dev/src/plugin.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ export const WebDevPlugin: Plugin<WebDevServerOptions> = (config, projectDirecto
1717
}
1818

1919
let webDevServer: WebpackDevServer.Configuration | undefined = {
20-
contentBase: upath.resolve(projectDirectory, DEFAULT_OUTPUT_LOCATION),
2120
compress: true,
2221
host: HOST,
2322
quiet: false,
2423
port: DEFAULT_PORT,
25-
historyApiFallback: true
24+
historyApiFallback: true,
25+
proxy: {
26+
"*": upath.resolve(projectDirectory, DEFAULT_OUTPUT_LOCATION)
27+
}
2628
};
2729

2830
if (config != null) {

0 commit comments

Comments
 (0)