Skip to main content

JavaScript Bundling for Rails

Shakapacker

Production-focused docs for configuring, deploying, and upgrading Shakapacker in Rails applications.

Quick Start

Install Files

bin/rails shakapacker:install

Open guide

What Teams Are Saying

The impact has been between a 2-4x build speed increase depending on the environment and conditions. The typical case of first startup with a warm cache has gone from roughly 1m with Webpack down to about 20s.

1m → 20sWarm-cache startup
~10sIncremental prod builds
4m30s → 3m30sCold-cache startup
Jon RajavuoriOn migrating from Webpack to rspack with ShakaCode Academia.edu

Docs Architecture

Canonical markdown stays in shakapacker/docs. This site syncs that content at build time, so docs stay co-located with the code while deployment remains independent.

Why Teams Use It

Drop-in Rails integration for modern JavaScript bundling with Webpack 5 and Rspack support.

Rails-first workflowKeep your existing conventions

Configuration, upgrades, and troubleshooting guidance are versioned alongside the source code.

Docs from sourceAlways aligned with current releases