Skip to content

Commit 8dc3cc0

Browse files
jhjguxinNerian
authored andcommitted
'Rakefile' use 'stylesheet_path' to call css file
1 parent 1a549d6 commit 8dc3cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ task 'update' do
2525

2626
core_file = File.read("#{origin_src_path}/bootstrap-wysihtml5.js")
2727
original_string = /stylesheets: \[".\/lib\/css\/wysiwyg-color.css"\]/
28-
objective_string = 'stylesheets: ["<%= Rails.configuration.assets.prefix + \'/bootstrap-wysihtml5/wysiwyg-color.css\' %>"]'
28+
objective_string = "stylesheets: [<%= stylesheet_path('bootstrap-wysihtml5/wysiwyg-color.css') %>]"
2929

3030
replaced = core_file.gsub(original_string, objective_string)
3131

@@ -50,4 +50,4 @@ task :publish => :build do
5050
system("git tag -a #{version} -m 'Release #{version}' ") unless tags.include?(version)
5151
system("gem push bootstrap-wysihtml5-rails-#{version}.gem")
5252
system("git push --follow-tags")
53-
end
53+
end

0 commit comments

Comments
 (0)