chenshuai2144 / umi-plugin-antd-theme

🎨 Best theme plugin
https://preview.pro.ant.design/
MIT License
85 stars 29 forks source link

部署到非根目录时, 无法读取theme #5

Closed SaberPdr closed 4 years ago

SaberPdr commented 4 years ago

本地环境切换theme时, 请求链接类似 Request URL: http://localhost:8000/theme/aliyun.css 部署在服务器上时, 切换时请求css文件的链接会是 Request URL: https://1.1.1.1/theme/aliyun.css 但是由于umi部署到非根目录 base: '/new/',
publicPath: '/new/', cssPublicPath: '/new/',里了, 所以在服务器环境应该请求https://1.1.1.1/new/theme/aliyun.css才能请求到 所以请问, 这个是不是缺少对应的配置方法?

SaberPdr commented 4 years ago

没事了我懂了