ant-design-vue-pro icon indicating copy to clipboard operation
ant-design-vue-pro copied to clipboard

vue设置publicPath: '/app/',其他资源都能访问到,但是有关于主题设置的theme-colors-[hash:8].css,这个文件路径仍不带app/,报404

Open wpp555 opened this issue 4 years ago • 1 comments

Question (问题描述) 设置子目录问题。vue设置publicPath: '/app/',其他资源都能访问到,使用app/*,但是有关于主题设置的theme-colors-[hash:8].css,这个文件路径仍不带app/,报404

Describe the solution you'd like (你期待的是什么?) 如何使theme-colors-[hash:8].css设置的目录不变,但访问时加上 app/

Additional context(附加信息) 设置子目录问题

wpp555 avatar Jul 26 '21 08:07 wpp555

主题插件只支持根目录,如果需要在子目录运行 需要手动配置 https://github.com/vueComponent/ant-design-vue-pro/blob/master/config/plugin.config.js#L15

sendya avatar Jul 26 '21 12:07 sendya