@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <link rel="icon" href="criminal.ico" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title></title>
+ </head>
+ <body>
+ <div id="app"></div>
+ <script type="module" src="/src/main.ts"></script>
+ </body>
+</html>
+ <link rel="icon" href="icon.ico" />
@@ -10,6 +10,16 @@ export default ({ mode }) =>
defineConfig({
base: loadEnv(mode, process.cwd()).VITE_PUBLIC_DIR,
plugins: [vue()],
+ build: {
+ rollupOptions: {
+ // 配置多页面
+ input: {
+ index: './index.html',
+ criminal: './criminal.html',
+ fire: './fire.html',
+ },
server: {
https: Number(loadEnv(mode, process.cwd()).VITE_USE_HTTPS) == 1,
host: true,