We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b57b6 commit 2883705Copy full SHA for 2883705
lib/install/install.rb
@@ -1,7 +1,10 @@
1
say "Compile into app/assets/builds"
2
empty_directory "app/assets/builds"
3
keep_file "app/assets/builds"
4
-append_to_file "app/assets/config/manifest.js", %(//= link_tree ../builds\n)
+
5
+if (sprockets_manifest_path = Rails.root.join("app/assets/config/manifest.js")).exist?
6
+ append_to_file sprockets_manifest_path, %(//= link_tree ../builds\n)
7
+end
8
9
if Rails.root.join(".gitignore").exist?
10
append_to_file(".gitignore", %(\n/app/assets/builds/*\n!/app/assets/builds/.keep\n/node_modules\n))
0 commit comments