No release in over 3 years
A Puma plugin that starts the dartsass:watch process alongside Puma, eliminating the need for foreman or bin/dev during development.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

puma-plugin-dartsass

A Puma plugin that starts dartsass:watch automatically when Puma starts in development. This eliminates the need for foreman or bin/dev — just run bin/rails s.

Based on the Puma plugin in tailwindcss-rails.

Installation

Add the gem to your Gemfile:

group :development do
  gem 'puma-plugin-dartsass', require: false
end

Then add the plugin to config/puma.rb:

plugin :dartsass if Rails.env.development?

That's it. bin/rails s will now start the Sass watcher alongside Puma.

How it works

When Puma starts, the plugin forks a child process that runs bin/rails dartsass:watch. The plugin monitors both processes — if Puma stops, the watcher is stopped; if the watcher crashes, Puma is stopped.

License

MIT