mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
fixed vite config for dev server
This commit is contained in:
@@ -6,8 +6,10 @@ import vuetify, {transformAssetUrls} from 'vite-plugin-vuetify'
|
||||
import {VitePWA} from "vite-plugin-pwa";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
|
||||
console.log('MODE: ', mode)
|
||||
return {
|
||||
base: mode == 'development' ? '/static/vue3/' : './',
|
||||
plugins: [
|
||||
vue({
|
||||
template: {transformAssetUrls}
|
||||
@@ -45,4 +47,5 @@ export default defineConfig({
|
||||
host: '0.0.0.0', // only needed to expose dev server to network bound IPs
|
||||
origin: 'http://localhost:5173',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user