forked from Dev-Mao/DEV005-social-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
29 lines (27 loc) · 881 Bytes
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from 'vite';
// additional config to direct the vite build to src directory
// https://vitejs.dev/config/#conditional-config
// https://vitejs.dev/config/shared-options.html#root
export default defineConfig(({ command }) => {
if (command === 'build') {
return {
root: 'src',
// para hacer un deploy en github pages, configura propiedad base con el
// nombre/url de tu repo
// para fazer uma implantação github pages, defina a propriedade base
// para o nome/url do seu repositório
// https://vitejs.dev/guide/static-deploy.html#github-pages
// ejemplo base: '/social-network/',
build: {
minify: false,
rollupOptions: {
output: {
dir: './dist',
},
},
},
};
}
return {};
});