exhibitionist-digital / ultra

Zero-Legacy Deno/React Suspense SSR Framework
https://ultrajs.dev
MIT License
3k stars 67 forks source link

Update create script to include usage of `useAsset` #171

Closed mashaal closed 2 years ago

mashaal commented 2 years ago

The create script doesn't include useAsset for the CSS file, which breaks the prod builds -- we should double check the other examples as well in case we missed them as well.

b3nten commented 2 years ago

It should probably be clearer in the docs that useAsset is required for loading assets...I had no idea.

deckchairlabs commented 2 years ago

It should probably be clearer in the docs that useAsset is required for loading assets...I had no idea.

By default it's required, since build will append the content hash of files to the filename eg. style.css -> style.[hash].css

b3nten commented 2 years ago

Should be an easy fix regardless.

mashaal commented 2 years ago

It should probably be clearer in the docs that useAsset is required for loading assets...I had no idea.

Yea, I agree that this should be clearer -- also need to doc how to use assets with CSS