|
@@ -1,8 +1,8 @@
|
|
import { defineConfig } from 'vite';
|
|
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import styleImport from 'vite-plugin-style-import';
|
|
import styleImport from 'vite-plugin-style-import';
|
|
-const vueJsx = require('@vitejs/plugin-vue-jsx')
|
|
|
|
-const legacy = require('@vitejs/plugin-legacy')
|
|
|
|
|
|
+const vueJsx = require('@vitejs/plugin-vue-jsx');
|
|
|
|
+const legacy = require('@vitejs/plugin-legacy');
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const path = require('path');
|
|
const path = require('path');
|
|
|
|
|
|
@@ -16,8 +16,8 @@ export default defineConfig({
|
|
vue(),
|
|
vue(),
|
|
vueJsx(),
|
|
vueJsx(),
|
|
legacy({
|
|
legacy({
|
|
- targets: ["> 0.25%, not dead"],
|
|
|
|
- ignoreBrowserslistConfig: true,
|
|
|
|
|
|
+ targets: ['> 0.25%, not dead'],
|
|
|
|
+ ignoreBrowserslistConfig: true
|
|
}),
|
|
}),
|
|
styleImport({
|
|
styleImport({
|
|
libs: [
|
|
libs: [
|
|
@@ -40,15 +40,15 @@ export default defineConfig({
|
|
},
|
|
},
|
|
server: {
|
|
server: {
|
|
host: '0.0.0.0',
|
|
host: '0.0.0.0',
|
|
- port: '5000',
|
|
|
|
|
|
+ port: 5000,
|
|
strictPort: true
|
|
strictPort: true
|
|
},
|
|
},
|
|
build: {
|
|
build: {
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
- input: {
|
|
|
|
- index: path.resolve(__dirname, 'index.html'),
|
|
|
|
- about: path.resolve(__dirname, 'teacher.html'),
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ input: {
|
|
|
|
+ index: path.resolve(__dirname, 'index.html'),
|
|
|
|
+ about: path.resolve(__dirname, 'teacher.html')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|