Skip to content

Commit

Permalink
Merge branch 'feature/insights-gpt' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Apr 2, 2024
2 parents bd8bc2c + 27e271a commit 38f0b1e
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
import { fileURLToPath, URL } from 'node:url';

import { defineConfig } from 'vite';
import { defineConfig, loadEnv } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
export default ({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');

return defineConfig({
define: {
'process.env': env,
},
plugins: [vue(), vueJsx()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import '@weni/unnnic-system/src/assets/scss/unnnic.scss';
`,
},
},
},
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
},
});
});
};

0 comments on commit 38f0b1e

Please sign in to comment.