-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support additional asset types #3
Comments
Is there any support for plain javascript/ I tried a few variants of specifying paths in script tags, but it seems that they are not being picked up at all. I ended up with something working via the Pre-trunk (webpack):
With trunk:
|
How would postcss support look like? Wouldn't that bring in nodeJS dependency? As an aside, I'd be interested in seeing built-in support for https://tailwindcss.com/ |
How far is Postcss support? The last activity was 2 months ago, is there someone working on it, and/or can a first contributor help with the work? |
Could an additional "html" asset type possibly be added, for linking in other html files for trunk attribute processing please? As an example, when hosting a static site on IPFS, the only way one can handle a custom 404 page is by adding a separate ipfs-404.html page. It would therefore be great if one could add a I took a bit of a look at hooks, but didn't see any way currently where I could just request an html file to be processed. |
Would be nice if there was a way to hook into the asset system instead of having to wait for first-party implementation of the one you want. I'd like TailwindCSS integration, e.g., but for now I'm just using |
I'm starting a trunk project for the first time and getting into major hurdles when trying to use sass. It's currently almost impossible to use external sass libraries like cirrus or similar, because the source files are all scattered around in I think it would be valuable to have a config point to add paths to add to |
Stylus +1 |
Currently,
trunk
ships with a built-in scss/sass compiler (https://github.com/compass-rs/sass-rs). We definitely need to add support for additional asset types.<link data-trunk rel="css-components"/>
any CSS found in the source tree will be concatenated & bundled, which would enable a nice zero-config "component styles" pattern. Users would be able to just create a CSS file right next to their Rust components, and Trunk will automatically process & bundle it.There are probably plenty of other asset types the community will want to support. Let's talk about them here, and then create specific issues for each asset type when we are ready to build the plugin/pipeline system.
The text was updated successfully, but these errors were encountered: