@morghulis/core 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,42 +1,37 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
# 1. vite.config.js (dev mode)
|
|
2
|
+
|
|
3
|
+
add server for local develop with valar
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import {fileURLToPath, URL} from 'node:url'
|
|
7
|
+
|
|
8
|
+
import {defineConfig} from 'vite'
|
|
9
|
+
import vue from '@vitejs/plugin-vue'
|
|
10
|
+
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
11
|
+
|
|
12
|
+
// https://vite.dev/config/
|
|
13
|
+
export default defineConfig({
|
|
14
|
+
plugins: [
|
|
15
|
+
vue(),
|
|
16
|
+
vueDevTools(),
|
|
17
|
+
],
|
|
18
|
+
resolve: {
|
|
19
|
+
alias: {
|
|
20
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
server: {
|
|
24
|
+
host: '0.0.0.0',
|
|
25
|
+
open: false,
|
|
26
|
+
proxy: {
|
|
27
|
+
'/api': {
|
|
28
|
+
target: `http://localhost:8000`,
|
|
29
|
+
changeOrigin: true,
|
|
30
|
+
ws: true,
|
|
31
|
+
rewrite: path => path.replace(/^\/api/, '')
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
### Type-Check, Compile and Minify for Production
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
npm run build
|
|
42
|
-
```
|