Skip to content

修改DefinePlugin中的参数报错 #349

Open
@guowei1120

Description

@guowei1120

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions