Open yhl10 opened 3 years ago
安装snowpack:
**npm:** npm install --save-dev snowpack **yarn:** yarn add --dev snowpack
scss依赖 npm install --sav-dev @snowpack/plugin-sass
npm install --sav-dev @snowpack/plugin-sass
babel依赖 npm install --save-dev @snowpack/plugin-babel
npm install --save-dev @snowpack/plugin-babel
snowpack默认只支持jsx、tsx语法,用js、ts语法,需如下安装babel: npm install --save-dev @babel/preset-react
npm install --save-dev @babel/preset-react
snowpack项目模板选择: 链接 npx create-snowpack-app new-dir --template [select from below]
npx create-snowpack-app new-dir --template [select from below]
snowpack typescript目前有极大问题,待继续研究
安装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]