ice icon indicating copy to clipboard operation
ice copied to clipboard

ice3打包输出多个html文件

Open KingCyril opened this issue 1 year ago • 5 comments

Describe the bug

image

Expected behavior

不适用hash路由的情况下如何配置使得输出一个html文件

Actual behavior

No response

Version of ice.js

ice3

Content of build.json or ice.config.mts

No response

Additional context

No response

KingCyril avatar Mar 22 '23 12:03 KingCyril

输出多个 html 是为了,更好的页面性能(不同页面路由包含资源不一样),要使用单个 html 可以考虑查看 index.html 的输出,后续框架也将提供额外的配置项达到类似的效果

ClarkXia avatar Mar 23 '23 02:03 ClarkXia

如果使用单个html应该怎么做呀,查看 index.html 的输出是什么意思

oco-go-seds avatar Aug 09 '23 10:08 oco-go-seds

输出多个 html 是为了,更好的页面性能(不同页面路由包含资源不一样),要使用单个 html 可以考虑查看 index.html 的输出,后续框架也将提供额外的配置项达到类似的效果

同样的问题,我也想关闭,我只想打包成一个html,有什么方法吗

oneQiu avatar Nov 30 '23 13:11 oneQiu

+1

lilithyang2018 avatar Dec 11 '23 02:12 lilithyang2018

能做到可选么

MoreCodeByTR avatar May 30 '24 07:05 MoreCodeByTR