Replies: 1 comment 1 reply
-
The output should include the reference to the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
i started my first project trying out with Vite, and so far it works good. When building for production with npm run build, it does convert scss files correctly into a css file, but the resulting html file does not include the newly created css file.
I included sass in my project using
npm add -D sass
This is my project directory:
I include my scss files within my app.ts:
When running
npm run build
, my dist folder looks like this:and the newly created HTML looks like this:
No trace of trying to include the newly created css file.
How to i "tell" Vite to include that when building?
vite.config.js:
tsconfig.json:
package.json:
Beta Was this translation helpful? Give feedback.
All reactions