调整代码提示

This commit is contained in:
qiang 2019-03-21 16:45:23 +08:00
parent 0c5b9f8225
commit 498cee1cc4
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,8 @@ module.exports = (api, options, rootOptions) => {
}, },
devDependencies: { devDependencies: {
'@babel/plugin-syntax-typescript': '^7.2.0', '@babel/plugin-syntax-typescript': '^7.2.0',
'@dcloudio/types': '*', '@types/uni-app': '*',
'@types/html5plus': '*',
'@vue/cli-plugin-typescript': '^3.3.0', '@vue/cli-plugin-typescript': '^3.3.0',
'typescript': api.hasPlugin('eslint') ? '~3.1.1' : '^3.0.0' 'typescript': api.hasPlugin('eslint') ? '~3.1.1' : '^3.0.0'
} }
@ -105,4 +106,4 @@ module.exports = (api, options, rootOptions) => {
await generate(path.resolve(__dirname, './template/common'), files) await generate(path.resolve(__dirname, './template/common'), files)
}) })
} }

View File

@ -12,8 +12,7 @@
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": ".",
"types": [ "types": [
"webpack-env", "webpack-env"
"@dcloudio/types/uni-app"
], ],
"paths": { "paths": {
"@/*": [ "@/*": [