Skip to content

Commit 0262c61

Browse files
author
David Heinemeier Hansson
committed
Append vendor/javascript to the sprockets manifest
1 parent a6a9e98 commit 0262c61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/install/install.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
if (sprockets_manifest_path = Rails.root.join("app/assets/config/manifest.js")).exist?
1818
say "Ensure JavaScript files are in the Sprocket manifest"
19-
append_to_file sprockets_manifest_path, %(//= link_tree ../../javascript .js\n)
19+
append_to_file sprockets_manifest_path,
20+
%(//= link_tree ../../javascript .js\n//= link_tree ../../../vendor/javascript .js\n)
2021
end
2122

2223
say "Configure importmap paths in config/importmap.rb"

0 commit comments

Comments
 (0)