yhl10 / yhl-snowpack-project

null
0 stars 0 forks source link

记录一次snowpack react typescript #2

Open yhl10 opened 3 years ago

yhl10 commented 3 years ago

安装snowpack:

**npm:**
npm install --save-dev snowpack
**yarn:**
yarn add --dev snowpack

scss依赖 npm install --sav-dev @snowpack/plugin-sass

babel依赖 npm install --save-dev @snowpack/plugin-babel

snowpack默认只支持jsx、tsx语法,用js、ts语法,需如下安装babel: npm install --save-dev @babel/preset-react

snowpack项目模板选择: 链接 npx create-snowpack-app new-dir --template [select from below]

yhl10 commented 3 years ago

snowpack typescript目前有极大问题,待继续研究