Template Asset Bundling
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
-
Clone the repository:
git clone https://github.com/gofiber/recipes.git
cd recipes/template-asset-bundling -
Install dependencies:
npm install
Usage
Building Assets
-
Build the assets:
npm run build
-
Watch assets for changes:
npm run dev
Running the Application
- Start the Fiber application:
go run main.go