statamic / ssg

The official Statamic Static Site Generator
231 stars 24 forks source link

Broken links to css and js #175

Open andylarkum opened 1 month ago

andylarkum commented 1 month ago

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:

Any ideas?

andylarkum commented 1 month ago

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>