frontend: disable esbuild drop
Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
parent
9ab5e684f3
commit
36e30993f7
1 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
|
|
@ -11,19 +9,22 @@ import path from 'node:path'
|
|||
export default defineConfig({
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [tailwind(), autoprefixer()],
|
||||
},
|
||||
plugins: [tailwind(), autoprefixer()]
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
vue()
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
//'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@': path.resolve(__dirname, './src')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
cors: false
|
||||
},
|
||||
esbuild: {
|
||||
drop: false
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue