Skip to content

Instantly share code, notes, and snippets.

View cgnz0r's full-sized avatar

Vasilii Gusachenko cgnz0r

View GitHub Profile
@cgnz0r
cgnz0r / vite.config.js
Created April 12, 2023 16:27
vite: config.js instead of .env files
import { fileURLToPath } from "node:url";
import { defineConfig } from 'vite'
import { resolve } from 'path'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import vue from '@vitejs/plugin-vue'
import path from 'path'
const filesNeedToExclude = ['config.js']
const filesPathToExclude = filesNeedToExclude.map((src) => {