mirror of
https://github.com/luxfhe/remix-plugin.git
synced 2026-10-30 17:09:44 +00:00
24 lines
483 B
JavaScript
24 lines
483 B
JavaScript
import { build, preview } from 'vite';
|
|
|
|
(async () => {
|
|
try {
|
|
await preview({
|
|
BASE_URL: '/',
|
|
MODE: 'production',
|
|
DEV: false,
|
|
PROD: true,
|
|
});
|
|
console.log('Preview server is running...');
|
|
console.log('Listening on https://localhost:4173\n');
|
|
|
|
const watcher = await build({
|
|
build: {
|
|
watch: {},
|
|
},
|
|
});
|
|
console.log('Build in watch mode is running...');
|
|
} catch (err) {
|
|
console.error('Error:', err);
|
|
}
|
|
})();
|