Webstorm Tips
webstorm 识别 UMI 以 @ 开头别名的相对路径
新建 jsconfig.json
shell
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
},
"exclude": [
"node_modules",
"dist",
".umi"
]
}
放到 根目录下即可
切换颜色值
颜色值可以在 hsl, rgb, hwb 之间更换
不支持 nodejs 等语法提示和补全
下载 node 语法库(使用最常用的工具来安装即可)
shell
$ yarn add @types/node -D