英文:
Problem with Tailwind and Github Pages deployment
问题
我正在部署此 Astro 登陆页面,并且已经按照 Astro 的指南进行了 集成 Tailwind 和 部署到 Github Pages,页面加载时 HTML 正确,但似乎无法正常加载 Tailwind 类。我找不到项目中缺少什么(也许是一些 deploy.yml 配置?)才能正常工作。
我已经在本地构建了项目,问题仍然存在。
英文:
I'm deploying this Astro landing page and I have followed Astro's guides to both integrate Tailwind and deploy it to Github Pages and the page loads with correct HTML but Tailwind classes do not seem to work/load. I cannot find what is missing in the project (maybe some deploy.yml config?) for it to work.
I've built the project locally and the problem is the same
答案1
得分: 0
在 **head** 中的 CSS 导入一开始做得不对,我不知道我做了什么,但现在它加载得很好。
事实上,媒体也没有加载,我不得不为图像和视频元素的源添加基础。感谢 @Wongjn 提供的见解。
在我的项目中,你可以看到实现这一点的步骤。
英文:
CSS import in head was not getting it right and I don't know what I did but now it loads it well.
Indeed, the media wasn't loading either and I had to add the base to the img and video elements' sources. Thanks to @Wongjn for the insight though.
In my project, you can see the steps to achieve this.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论