问题出在Tailwind和Github Pages部署上。

huangapple go评论56阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月9日 05:00:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76435659.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定