Path 如何更改react应用程序重新布线的生成路径
我正在尝试更改文件config-overrides.json中react-app的构建路径,如下所述Path 如何更改react应用程序重新布线的生成路径,path,react-app-rewired,Path,React App Rewired,我正在尝试更改文件config-overrides.json中react-app的构建路径,如下所述 [https://github.com/timarney/react-app-rewired/issues/201][1] module.exports = { paths: function (paths, env) { paths.appBuild = 'C:\\Projects\\jhipster\\src\\main\\webapp\\app';
[https://github.com/timarney/react-app-rewired/issues/201][1]
module.exports = {
paths: function (paths, env) {
paths.appBuild = 'C:\\Projects\\jhipster\\src\\main\\webapp\\app';
return paths;
}
};
但未将其考虑在内,我收到以下错误:
Could not find a required file.
Name: index.html
Searched in: C:\Projects\jhipster\public
我直接对路径进行了硬编码,只是为了测试它是否工作
我遗漏了什么吗