npx degit dcloudio/uni-preset-vue#vite-ts m-uni-demo1
跳转到对应目录,装包,运行
cd m-uni-demo1
yarn
yarn dev:h5
tsconfig.json:
{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"ignoreDeprecations": "5.0",
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"lib": ["esnext", "dom"],
"types": ["@dcloudio/types"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
参考链接
https://uniapp.dcloud.net.cn/quickstart-cli.html
人工智能学习网站