Replies: 1 comment
-
Thanks for flagging this! A few months ago, someone reported that the wildcard (
Does that look good to you? Meanwhile, I would suggest that putting that code directly in In terms of CSS, esbuild is likely creating the CSS file in your
If you want this to work seamlessly with the existing Tailwind set up, you would need to find a way to copy that CSS file to the I'm going to convert this to a discussion—please let me know if you ahve any other questions! |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you so much for this project!
I'm having trouble setting up js libraries css and custom code.
For example, I'm using PhotoSwipe (https://photoswipe.com/getting-started/).
From the docs (https://underscoretw.com/docs/esbuild/) it seems like I should first add the library to
javascript/script.js
But what about my custom code? Should I just put it there?
In
theme/js/readme.txt
it mentions:So it seems like I should be able to create a file such as
javascript/gallery.js
and it would be automatically included, right? But it doesn't seem to work.Is my thinking correct? Should I place custom .js somewhere else?
If I copy it all to
javascript/script.js
, the javascript is loaded, but not the css:Sorry if this is explained somewhere else in the docs, I couldn't find it. Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions