35 lines
752 B
JavaScript
35 lines
752 B
JavaScript
import { defineConfig } from "vite";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import {fileURLToPath, URL} from 'node:url';
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), vue()],
|
|
|
|
base: '/image/catalog/tgshopspa/',
|
|
build: {
|
|
outDir: '../module/oc_telegram_shop/upload/image/catalog/tgshopspa',
|
|
emptyOutDir: true,
|
|
sourcemap: true,
|
|
manifest: true,
|
|
},
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
|
|
server: {
|
|
host: true,
|
|
allowedHosts: ["tg.nikitakiselev.ru"],
|
|
proxy: {
|
|
'/index.php': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
rewrite: path => path,
|
|
}
|
|
}
|
|
},
|
|
});
|