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 { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
|
||||||
|
|
@ -11,19 +9,22 @@ import path from 'node:path'
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [tailwind(), autoprefixer()],
|
plugins: [tailwind(), autoprefixer()]
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue()
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
//'@': fileURLToPath(new URL('./src', import.meta.url))
|
//'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
'@': path.resolve(__dirname, './src'),
|
'@': path.resolve(__dirname, './src')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
cors: false
|
cors: false
|
||||||
|
},
|
||||||
|
esbuild: {
|
||||||
|
drop: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue