frequi_origin/vite.config.js
2022-02-05 19:34:59 +01:00

31 lines
596 B
JavaScript

import { defineConfig } from 'vite';
import { createVuePlugin } from 'vite-plugin-vue2';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [createVuePlugin()],
server: {
host: 'localhost',
port: 8080,
},
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, 'src'),
},
],
},
build: {
chunkSizeWarningLimit: 700, // Default is 500
},
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/styles/_variables.scss";',
},
},
},
});