Skip to main content

Template Asset Bundling

Github StackBlitz

This is a quick example of how to do asset bundling using gofiber/template, Tailwind CSS, and Parcel.

Prerequisites

Ensure you have the following installed:

  • Golang
  • Node.js
  • npm

Setup

  1. Clone the repository:

    git clone https://github.com/gofiber/recipes.git
    cd recipes/template-asset-bundling
  2. Install dependencies:

    npm install

Usage

Building Assets

  1. Build the assets:

    npm run build
  2. Watch assets for changes:

    npm run dev

Running the Application

  1. Start the Fiber application:
    go run main.go