Skip to content

Instantly share code, notes, and snippets.

@jdudek
Created December 22, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdudek/8fbbe2b17ceb79cf0ea9 to your computer and use it in GitHub Desktop.
Save jdudek/8fbbe2b17ceb79cf0ea9 to your computer and use it in GitHub Desktop.
namespace :webpack do
desc 'compile assets using webpack'
task :compile do
sh '`npm bin`/webpack --config config/webpack/production.config.js'
end
end
Rake::Task['assets:precompile'].enhance ['webpack:compile']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment