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 c4b771e commit 93e68b7Copy full SHA for 93e68b7
lib/install/install.rb
@@ -1,7 +1,10 @@
1
say "Build 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
say "Stop linking stylesheets automatically"
10
gsub_file "app/assets/config/manifest.js", "//= link_directory ../stylesheets .css\n", ""
0 commit comments