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 083f9ef commit 1973162Copy full SHA for 1973162
lib/install/dartsass.rb
@@ -5,6 +5,13 @@
5
empty_directory "app/assets/builds"
6
keep_file "app/assets/builds"
7
8
+if (sprockets_manifest_path = Rails.root.join("app/assets/config/manifest.js")).exist?
9
+ append_to_file sprockets_manifest_path, %(//= link_tree ../builds\n)
10
+
11
+ say "Stop linking stylesheets automatically"
12
+ gsub_file "app/assets/config/manifest.js", "//= link_directory ../stylesheets .css\n", ""
13
+end
14
15
if Rails.root.join(".gitignore").exist?
16
append_to_file(".gitignore", %(\n/app/assets/builds/*\n!/app/assets/builds/.keep\n))
17
end
0 commit comments