Repository navigation
Add a way to configure file loaders #9982
Closed
terrygonguet
started this conversation in
Feature requests
Replies: 2 comments
|
This is possible with the Stage 3 TC39 proposal for importing text which is supported by esbuild which we use to build configs: import file from "./email/welcome.mjml" with { type: "text" }You can also create a |
0 replies
|
Great, thanks. I tried the Is the custom esbuild config documented anywhere and I just missed it? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I often want to use non-JS files in my app like Handlebar, MJML or random formats but I can't figure out a way to configure the build tool in Keystone.
Currently I'm reading the files manually at startup using
fsbut it's clunky and doesn't allow for hot reload.It would be very useful if we could add loaders so I can write
import file from "./email/welcome.mjml"and get the file contents, ideally with my custom loader.Even just a way to add a set of file extensions to be
raw-loader'd would be great.All reactions