Fix slow HMR because of duplicated TW import

This commit is contained in:
Julien Nahum 2024-04-01 13:26:22 +02:00
parent a595972c88
commit b93f421e39
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,9 @@ export default defineNuxtConfig({
}),
],
},
tailwindcss: {
cssPath: ['~/scss/app.scss']
},
colorMode: {
preference: 'light',
fallback: 'light',

View File

@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt dev",
"dev": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt dev --host=127.0.0.1",
"generate": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"