xiaoyu před 2 roky
rodič
revize
dea4faa0ee
5 změnil soubory, kde provedl 23 přidání a 2 odebrání
  1. 1 0
      tsconfig.app.json
  2. 1 0
      tsconfig.json
  3. 1 2
      tsconfig.node.json
  4. 2 0
      vite.config.d.ts
  5. 18 0
      vite.config.js

+ 1 - 0
tsconfig.app.json

@@ -9,6 +9,7 @@
     "ignoreDeprecations":"5.0",
     "noImplicitAny": false,
     "strict": false,
+    "noEmit": false,
     "baseUrl": ".",
     "paths": {
       "@/*": ["./src/*"]

+ 1 - 0
tsconfig.json

@@ -11,6 +11,7 @@
   "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
   
   "compilerOptions": {
+     "declaration": true,
      "baseUrl": "src",
      "paths": {
       "@/*": ["./*"]

+ 1 - 2
tsconfig.node.json

@@ -9,9 +9,8 @@
   ],
   "compilerOptions": {
     "composite": true,
-    "noEmit": true,
     "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
-
+    "noEmit": false,
     "module": "ESNext",
     "moduleResolution": "Bundler",
     "types": ["node"]

+ 2 - 0
vite.config.d.ts

@@ -0,0 +1,2 @@
+declare const _default: import("vite").UserConfig;
+export default _default;

+ 18 - 0
vite.config.js

@@ -0,0 +1,18 @@
+import { fileURLToPath, URL } from 'node:url';
+import { defineConfig } from 'vite';
+import vue from '@vitejs/plugin-vue';
+// https://vitejs.dev/config/
+export default defineConfig({
+    plugins: [
+        vue(),
+    ],
+    resolve: {
+        alias: {
+            '@': fileURLToPath(new URL('./src', import.meta.url))
+        }
+    },
+    server: {
+        host: '127.0.0.1',
+        port: 4000
+    }
+});