Skip to content

Instantly share code, notes, and snippets.

View kristof-mattei's full-sized avatar
🦀
Rusting?

Kristof Mattei kristof-mattei

🦀
Rusting?
View GitHub Profile
@dmshvetsov
dmshvetsov / Rakefile
Last active July 30, 2022 00:02
Use rails webpacker gem with npm instead of yarn, Rails recipe.
# Rakefile
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
# Replace yarn with npm
Rake::Task['yarn:install'].clear if Rake::Task.task_defined?('yarn:install')
Rake::Task['webpacker:yarn_install'].clear
Rake::Task['webpacker:check_yarn'].clear