promo! react
This commit is contained in:
parent
8526e66f5c
commit
037681b463
@ -2,21 +2,23 @@ import { defineConfig } from 'vite';
|
|||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig(({mode}) => ({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
...(mode != 'production' && {
|
||||||
host: 'local.hvatilo.ru',
|
server: {
|
||||||
port: 9876,
|
host: 'local.hvatilo.ru',
|
||||||
https: {
|
port: 9876,
|
||||||
cert: fs.readFileSync('local.hvatilo.ru.pem'),
|
https: {
|
||||||
key: fs.readFileSync('local.hvatilo.ru-key.pem'),
|
cert: fs.readFileSync('local.hvatilo.ru.pem'),
|
||||||
},
|
key: fs.readFileSync('local.hvatilo.ru-key.pem'),
|
||||||
open: '/src/template.html',
|
},
|
||||||
},
|
open: '/src/template.html',
|
||||||
|
}
|
||||||
|
}),
|
||||||
input: {
|
input: {
|
||||||
main: './src/template.html',
|
main: './src/template.html',
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
Loading…
Reference in New Issue
Block a user