I have a problem with my react-vite project. Vite doesn't recognize my style.css file
This is my configuration file.
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
Somebody can help me?
In the final I solved with this configuration of vite :
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
css:{
modules:{
localsConvention:"camelCase",
generateScopedName:"[local]_[hash:base64:2]"
}
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With