4

在我的反应项目中,嵌套路径的硬刷新不起作用。然后雪包配置尝试从文件夹“ dist ”加载并且无法提供该页面。

像雪包文档中的配置:

{
  mount: {
    public: '/',
    src: '/_dist_',
  },
   ...
 }

错误

http://localhost:3000/myfolder/id

GET http://localhost:3000/myfolder/_dist_/index.js net::ERR_ABORTED 404 (Not Found)
4

0 回答 0