mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
node config problem fixd
This commit is contained in:
parent
914fcb07ff
commit
012c135e19
5
src/vite-env.d.ts
vendored
5
src/vite-env.d.ts
vendored
@ -22,3 +22,8 @@ declare module 'virtual:*' {
|
|||||||
const result: any
|
const result: any
|
||||||
export default result
|
export default result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module '*.json' {
|
||||||
|
const jsonContent: any
|
||||||
|
export default jsonContent
|
||||||
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
@ -10,6 +11,7 @@
|
|||||||
"vite-plugin/index.ts",
|
"vite-plugin/index.ts",
|
||||||
"vite-plugin/type.ts",
|
"vite-plugin/type.ts",
|
||||||
"cfg.ts",
|
"cfg.ts",
|
||||||
"src/types/cfg.ts"
|
"src/types/cfg.ts",
|
||||||
|
"package.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ import viteCompression from 'vite-plugin-compression' // 压缩打包
|
|||||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' // 模板自动导入组件并且按需打包
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' // 模板自动导入组件并且按需打包
|
||||||
|
|
||||||
import config from './cfg'
|
import config from './cfg'
|
||||||
const pkg = require('./package.json')
|
import pkg from './package.json'
|
||||||
|
|
||||||
const { dependencies, devDependencies, name, version } = pkg
|
const { dependencies, devDependencies, name, version } = pkg
|
||||||
const { server, buildOptions, alias, title, copyright, sideBarLogo } = config
|
const { server, buildOptions, alias, title, copyright, sideBarLogo } = config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user