feat(envelope-generator-react-ui): init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import path from 'path';
|
||||
import checker from 'vite-plugin-checker';
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const PORT = 3039;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
checker({
|
||||
typescript: true,
|
||||
eslint: {
|
||||
useFlatConfig: true,
|
||||
lintCommand: 'eslint "./src/**/*.{js,jsx,ts,tsx}"',
|
||||
dev: { logLevel: ['error'] },
|
||||
},
|
||||
overlay: {
|
||||
position: 'tl',
|
||||
initialIsOpen: false,
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: [
|
||||
{
|
||||
find: /^src(.+)/,
|
||||
replacement: path.resolve(process.cwd(), 'src/$1'),
|
||||
},
|
||||
],
|
||||
},
|
||||
server: { port: PORT, host: true },
|
||||
preview: { port: PORT, host: true },
|
||||
});
|
||||
Reference in New Issue
Block a user