跳至主要内容

模板资源打包

Github StackBlitz

这是一个关于如何使用 gofiber/templateTailwind CSSParcel 进行资源打包的快速示例。

先决条件

请确保你已安装以下软件

  • Golang
  • Node.js
  • npm

设置

  1. 克隆仓库

    git clone https://github.com/gofiber/recipes.git
    cd recipes/template-asset-bundling
  2. 安装依赖

    npm install

使用方法

构建资源

  1. 构建资源

    npm run build
  2. 监听资源变化

    npm run dev

运行应用

  1. 启动 Fiber 应用
    go run main.go