reskript
reskript copied to clipboard
修改DefinePlugin中的参数报错
finalize: webpackConfig => {
webpackConfig.plugins.forEach(item => {
if (item instanceof DefinePlugin) {
item.definitions['process.env.PUBLIC_URL'] = JSON.stringify(homepage);
}
});
return webpackConfig;
}
修改DefinePlugin中的参数,提示编译错误