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

修改DefinePlugin中的参数报错 #349

Open
guowei1120 opened this issue Dec 6, 2023 · 1 comment
Open

修改DefinePlugin中的参数报错 #349

guowei1120 opened this issue Dec 6, 2023 · 1 comment

Comments

@guowei1120
Copy link

finalize: webpackConfig => {
webpackConfig.plugins.forEach(item => {
if (item instanceof DefinePlugin) {
item.definitions['process.env.PUBLIC_URL'] = JSON.stringify(homepage);
}
});
return webpackConfig;
}
image

修改DefinePlugin中的参数,提示编译错误

@otakustay
Copy link
Member

SKR_LOGGING=debug这个环境变量再跑一下,会有详细的错误信息

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

2 participants