path - 如何更改 react-app-rewired 的构建路径
问题描述
我正在尝试更改文件 config-overrides.json 中 react-app-rewired 的构建路径,如此处所述
[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
我直接硬编码路径只是为了测试它是否有效。
我遗漏了什么吗?
解决方案
推荐阅读
- html - 如何让图像和/或 div 并排放置
- reactjs - ReactJS useEffect 依赖警告导致无限循环
- flutter - Flutter如何删除堆栈中两个小部件之间的线?
- java - 在 IntelliJ 中运行提取的 jar 源
- opencl - 哪个访问 Qualifiers opencl 更快?
- css - 使用 .less 文件覆盖 Vuetify 样式
- python - 按时间序列过滤每组最新的 x % 并计算聚合
- excel - Excel - 完成一个 10x10 矩阵,其索引值(行号和列号)相乘
- c - 静态线程标志和 -O3
- laravel - Laravel Sanctum 前缀返回 404