Replies: 1 comment
-
The answer to the question is provided by the documentation. I hadn't fully understood how the Vite configuration worked. Vite is responsible for creating the manifest.json file that generates the necessary style and script files for the templates. In my case, I had several CSS files in resources, so each of these files must be declared in the entry point of the vite.config file. I'm leaving you the documentation where this is explained better. Vite Experimental |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I created an image of my project using version 6 of Adonis. I managed to successfully run the project container, but when making requests, it returns an error stating that the stylesheet is not found.
I am using version 20.11.1 of node. I use Edge to generate templates, configured Tailwind CSS for styles but processed them with Vite. What I am generating are PDFs, and I generate the PDFs with Playwright.
I created the image below, and I'm not sure if there's anything else I need to ensure to get the styles.
In the adonisrc.ts file, only the template files and public files are being called. I'm not sure if I need to configure something here to include all files from the resources directory.
Here's the configuration from the vite.config.js file:
Any kind of help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions