Replies: 2 comments 6 replies
-
Here is the gist: https://gist.github.com/rallisf1/cd959bc8f267628ac3a7f83ffd0aeca6 Create these 2 files in your published website root (aka where index.html is) and run |
Beta Was this translation helpful? Give feedback.
-
Interesting - could you share your motivation for wanting to keep the styles separate? I've debated the benefits of linking vs embedding and decided the tradeoff of embedding was more preferable (slightly higher load time but w/ styles included so no flash of unstyled content). Publishing the images as files instead of embedding should be possible in the future, but we'll probably want to improve the upload functionality first so that only files which have been changed get uploaded (as opposed to uploading the whole site bundle & images each time). |
Beta Was this translation helpful? Give feedback.
-
I am writing a node script to extract styles and images from the generated html and replace them with actual file refs. I'd rather have this option in primo tbh, but I'm in a bit of a hurry to publish this and will make manual edits (outside of primo) later on so it actually makes it easier for me to keep everything separate.
Will share a gist here when I'm done.
Beta Was this translation helpful? Give feedback.
All reactions