Open goldlin opened 5 years ago
https://github.com/lavas-project/lavas/blob/134fd8a4a09223e61acee3afafefc351e3689750/packages/lavas-core-vue/core/builder/prod-builder.js#L52
let clientConfig = await this.createSSRClientConfig(); let serverConfig = await this.createSSRServerConfig();
第二句执行后,clientConfig中的DefinePlugin的配置实际上被serverConfig给复盖了(连 process.env.VUE_ENV 都变成'server'了)
暂不清楚是Webpack的 bug 还是lavas-core的 bug
https://github.com/lavas-project/lavas/blob/134fd8a4a09223e61acee3afafefc351e3689750/packages/lavas-core-vue/core/builder/prod-builder.js#L52
第二句执行后,clientConfig中的DefinePlugin的配置实际上被serverConfig给复盖了(连 process.env.VUE_ENV 都变成'server'了)
暂不清楚是Webpack的 bug 还是lavas-core的 bug