Replies: 4 comments 3 replies
-
Maybe there is a tree-shaking logic there that drops the Have you tried importing the |
Beta Was this translation helpful? Give feedback.
-
add postcss.config.js file and it will work: |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. Vite ignores index.css when output entryPoint is not an html file. But I need my entryPoint as js... Here is my config import { defineConfig } from "vite";
export default defineConfig(({ mode }) => {
const isProduction = mode === "production";
return {
base: isProduction ? "/map/" : "",
build: {
outDir: "dist",
minify: isProduction,
rollupOptions: {
input: "src/index.ts",
output: {
entryFileNames: "index.js",
},
},
},
};
}); |
Beta Was this translation helpful? Give feedback.
-
I resolved it by adding the file into vite.config.js
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this issue with Laravel app that uses Vite to compile JS / CSS assets for production. For some reason the production app.css does not includes anything from the app.css although I have specified it in the Vite config below. Any ideas? Anybody else run into this issue?
Thanks, Juha
Beta Was this translation helpful? Give feedback.
All reactions