Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken links to css and js #175

Open
andylarkum opened this issue Aug 8, 2024 · 1 comment
Open

Broken links to css and js #175

andylarkum opened this issue Aug 8, 2024 · 1 comment

Comments

@andylarkum
Copy link

Followed all steps detailed in README.md

The generated static content references:
build/assets/*

...for css and js files, but this folder does not exist.

css and js files do exist in:
css/*
js/*

...but have different names to those referenced in the html. Example:
html ref: tailwind-891c0160.css
filenames in css:

  • tailwind.css
  • tailwind.css.br
  • tailwind.css.gz

Any ideas?

@andylarkum
Copy link
Author

For now, to work around, I've done this (in case it helps others):

In layouts.antlers.html:
Remove Antlers:
{{ vite src=“resources/js/app.js|resources/css/app.css” }

Add HTML:
<link rel="stylesheet" href="/css/tailwind.css"/>
<script src="/js/site.js"></script>
<script defer src="//unpkg.com/alpinejs" defer></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant