-
I am trying to understand how I can keep my custom folder structure while From what I understand, only very specific name and path matching files will make it into the what I expectI would expect:
Sample folder structure
what I know
what I have triedIn my test-cases of the image above, only the files directly placed into any of the expected(1) folders will be bundled into the (1) Folders that are expected are: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess I found my answer: Then the question would be: Which files will be excluded and which ones will be included? Will only the files be excluded that either have
export default defineUnlistedScript(() => {
// Executed when script is loaded
console.log("this will be ignored by the bundler");
}); |
Beta Was this translation helpful? Give feedback.
-
The files that will be used as inputs are:
No other files will be used and inputs/entrypoints to the bundle. The entrypoints folder is meant to be a flat simple directory with only files related to entrypoints in it. If you have components, put them in the top level components folder, not inside the entrypoints folder. If you have utilities, put them in the top level utils folder, not the entrypoints folder. Here's an example of the most things I would recommend putting inside the entrypoints folder: https://wxt.dev/guide/key-concepts/frontend-frameworks.html#multiple-apps |
Beta Was this translation helpful? Give feedback.
The files that will be used as inputs are:
entrypoints/<name>.<ext>
entrypoints/<name>/index.<ext>
No other files will be used and inputs/entrypoints to the bundle.
The entrypoints folder is meant to be a flat simple directory with only files related to entrypoints in it. If you have components, put them in the top level components folder, not inside the entrypoints folder. If you have utilities, put them in the top level utils folder, not the entrypoints folder.
Here's an example of the most things I would recommend putting inside the entrypoints folder:
https://wxt.dev/guide/key-concepts/frontend-frameworks.html#multiple-apps