Skip to content

Instantly share code, notes, and snippets.

@fessacchiotto
Last active April 26, 2022 08:01
Show Gist options
  • Save fessacchiotto/e946536133c08c74a67d4e5323eafcac to your computer and use it in GitHub Desktop.
Save fessacchiotto/e946536133c08c74a67d4e5323eafcac to your computer and use it in GitHub Desktop.
in project root
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vuetify from "@vuetify/vite-plugin";
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import fs from 'fs';
import path from "path";
export default defineConfig({
plugins: [
vue(),
vuetify({
autoImport: true,
}),
vueI18n({})
],
define: { "process.env": {} },
// base: "https://192.168.1.50:9000",
build: {
sourcemap: true,
},
server: {
port: 3030,
host: "localhost",
https: {
key: fs.readFileSync('../../common/key.pem'),
cert: fs.readFileSync('../../common/cert.pem'),
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment