Skip to content

Commit 0dfd5b8

Browse files
Merge pull request #51 from bichinger/fix-css-load
Fix css load when using manifest_name
2 parents 09f172b + 52e8e5c commit 0dfd5b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/critical_path_css/rails/config_loader.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ def configuration_file_path
2121
def format_css_paths
2222
config['css_paths'] = [config['css_path']] if config['css_path']
2323

24-
if config['css_paths']
25-
config['css_paths'].map! { |path| format_path(path) }
26-
else
24+
unless config['css_paths']
2725
config['css_paths'] = [ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: '')]
2826
end
27+
config['css_paths'].map! { |path| format_path(path) }
2928
end
3029

3130
def format_path(path)

0 commit comments

Comments
 (0)