模板资源打包
这是一个关于如何使用 gofiber/template、Tailwind CSS 和 Parcel 进行资源打包的快速示例。
先决条件
请确保你已安装以下软件
- Golang
- Node.js
- npm
设置
-
克隆仓库
git clone https://github.com/gofiber/recipes.git
cd recipes/template-asset-bundling -
安装依赖
npm install
使用方法
构建资源
-
构建资源
npm run build
-
监听资源变化
npm run dev
运行应用
- 启动 Fiber 应用
go run main.go