Replies: 1 comment
-
I found a solution after a lot of experimentation, so I'll sketch it here in case it helps others:
Also, to answer my own numbered questions in the post above:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a single build run, I want to walk a folder structure that contains json, css, images, audio, and mp4s so that when a leaf folder is reached, all the assets encountered along its folderpath are used to configure an entry point. To do this, I plan to use a dynamic entry function that returns an object where each key is a query-path and each value is a relative filepath to an index.js.
This works well for the index.js and json and css assets, but it doesn't yet handle non-inline assets. I believe I could do that via the js api. However, I can't figure out the following:
rspack.config.mjs
? This would tell me how to inspect the Stats object when I build from the commandline.rspack.config.mjs
as a sibling to theentry
? That seems unlikely to be accessible to the entry function.Beta Was this translation helpful? Give feedback.
All reactions