diff --git a/lib/language_pack/rails4.rb b/lib/language_pack/rails4.rb index 27041f9..4ebbdc0 100644 --- a/lib/language_pack/rails4.rb +++ b/lib/language_pack/rails4.rb @@ -66,6 +66,10 @@ def default_assets_cache "tmp/cache/assets" end + def node_modules_cache + "node_modules" + end + def cleanup super return if assets_compile_enabled? @@ -88,6 +92,7 @@ def run_assets_precompile_rake_task @cache.load_without_overwrite public_assets_folder @cache.load default_assets_cache + @cache.load node_modules_cache precompile.invoke(env: rake_env) @@ -101,6 +106,7 @@ def run_assets_precompile_rake_task cleanup_assets_cache @cache.store public_assets_folder @cache.store default_assets_cache + @cache.store node_modules_cache else precompile_fail(precompile.output) end