前端技术方案:
- 前端构建方式: rollup
- js语言: typeScript 3.9.3
src/
entry.ts
—— 入口文件scss
—— 样式
index.html
—— 模版文件dist/
—— 构建结果目录(已被 Git 忽略)
-
把代码库 clone 到本地。
-
进入本项目的根目录,执行以下命令即可运行开发环境:
# 下载依赖
yarn install
# 运行
yarn serve
# 打包
yarn build
- 运行
yarn build
。 - 构建结果在
dist/
目录中。