We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf1f4a6 + b552223 commit 3e0df67Copy full SHA for 3e0df67
web/packages/webpack/src/config-webpack-plugin.ts
@@ -149,7 +149,7 @@ class ConfigWebpackPlugin {
149
compiler.hooks.done.tap(PLUGIN_NAME, ({ compilation }: Stats) => {
150
// 用于dev,生成api.json url
151
if (IS_DEV) {
152
- const { devServer } = compilation.options;
+ const { devServer } = compilation.options as any;
153
const https = devServer?.https || false;
154
const host = devServer?.host || 'localhost';
155
const port = devServer?.port || '8080';
0 commit comments