2020
10-08
10-08
vue cli4.0项目引入typescript的方法
现有的项目是采用vuecli4.0脚手架生成的,现在想要引入typescript。1.执行安装命令npminstall--save-devtypescriptnpminstall--save-dev@vue/cli-plugin-typescript2.根目录下新建tsconfig.json{"compilerOptions":{"target":"esnext","module":"esnext","strict":true,"importHelpers":true,"moduleResolution":"node","experimentalDecorators":true,"esModuleInterop":true,"allowSynthet...
继续阅读 >