Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client defines 会被 server defines 覆盖 #227

Open
goldlin opened this issue Mar 26, 2019 · 0 comments
Open

client defines 会被 server defines 覆盖 #227

goldlin opened this issue Mar 26, 2019 · 0 comments

Comments

@goldlin
Copy link

goldlin commented Mar 26, 2019

let clientConfig = await this.createSSRClientConfig();

            let clientConfig = await this.createSSRClientConfig();
            let serverConfig = await this.createSSRServerConfig();

第二句执行后,clientConfig中的DefinePlugin的配置实际上被serverConfig给复盖了(连 process.env.VUE_ENV 都变成'server'了)

暂不清楚是Webpack的 bug 还是lavas-core的 bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant