Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rails
  3. webpacker

webpacker

MITRuby

A retired Rails gem that integrated Webpack to manage JavaScript modules in Rails applications.

GitHubGitHub
5.3k stars1.5k forks0 contributors

What is webpacker?

Webpacker was an official Rails gem that integrated Webpack to manage JavaScript modules in Rails applications. It provided a bridge between Rails and modern JavaScript tooling, allowing developers to use Webpack for compiling, bundling, and managing JavaScript assets within Rails projects. The gem has been retired following the release of Rails 7, which introduced newer JavaScript bundling approaches.

Target Audience

Rails developers who needed to integrate modern JavaScript tooling into their applications, particularly those working on Rails 5.x and 6.x applications before Rails 7's JavaScript alternatives became available.

Value Proposition

Webpacker offered an officially-supported way to use Webpack within Rails without complex configuration, following Rails conventions while providing access to modern JavaScript ecosystem features. It simplified the setup process and provided a standardized approach that worked well with the Rails asset pipeline.

Overview

Use Webpack to manage app-like JavaScript modules in Rails

Use Cases

Best For

  • Rails 5.x and 6.x applications needing Webpack integration
  • Projects requiring compiled JavaScript modules within Rails
  • Teams wanting standardized JavaScript asset management in Rails
  • Applications transitioning from Rails' traditional asset pipeline to modern JavaScript tooling
  • Projects needing hot-module reloading in development
  • Teams preferring official Rails-maintained JavaScript tooling

Not Ideal For

  • New Rails 7+ applications starting from scratch
  • Projects requiring active maintenance and feature updates
  • Teams needing the latest JavaScript ecosystem libraries
  • Applications where seamless migration to modern alternatives is a priority

Pros & Cons

Pros

Seamless Webpack Integration

Integrated Webpack into Rails with minimal configuration, following Rails' convention-over-configuration philosophy to simplify setup for developers.

Standardized Asset Management

Provided a structured approach for managing JavaScript, CSS, and other assets within Rails projects, reducing fragmentation in asset handling.

Hot-Reload Development

Included a development server with hot-module reloading capabilities, enhancing developer experience by enabling real-time updates during coding.

Sensible Configuration Defaults

Offered pre-configured Webpack settings tailored for Rails applications, lowering the barrier to entry for using modern JavaScript tooling.

Cons

Officially Retired

No longer actively maintained by the Rails team, with only limited security patches for the Ruby gem and no updates to JavaScript libraries, making it obsolete for new development.

Complex Migration Path

Switching to alternatives like jsbundling-rails or import maps requires non-trivial effort, as documented in migration guides, which can be disruptive for existing projects.

Frozen at Version 5

The gem is stuck at v5 without newer Webpack or JavaScript library versions, potentially leading to compatibility issues with modern dependencies and tools.

Limited Customization Ease

While it simplified setup, advanced customizations often required deep Webpack expertise, contradicting its goal of accessibility for non-experts.

Frequently Asked Questions

Quick Stats

Stars5,279
Forks1,453
Contributors0
Open Issues10
Last commit1 year ago
CreatedSince 2016

Tags

#hacktoberfest#rails#ruby-gem#yarn#frontend#frontend-tooling#bundling#javascript#asset-pipeline#webpack

Built With

R
Rails
R
Ruby
J
JavaScript
W
Webpack

Included in

Rails3.9k
Auto-fetched 1 day ago

Related Projects

devisedevise

Flexible authentication solution for Rails with Warden.

Stars24,341
Forks5,504
Last commit14 days ago
spreespree

Open-source headless eCommerce platform with REST API, TypeScript SDK, and Next.js storefront for cross-border, B2B or marketplace eCommerce.

Stars15,360
Forks5,244
Last commit2 days ago
activeadminactiveadmin

The administration framework for Ruby on Rails applications.

Stars9,684
Forks3,325
Last commit1 day ago
CarrierwaveCarrierwave

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks

Stars8,774
Forks1,650
Last commit3 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub