We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09f172b + 52e8e5c commit 0dfd5b8Copy full SHA for 0dfd5b8
lib/critical_path_css/rails/config_loader.rb
@@ -21,11 +21,10 @@ def configuration_file_path
21
def format_css_paths
22
config['css_paths'] = [config['css_path']] if config['css_path']
23
24
- if config['css_paths']
25
- config['css_paths'].map! { |path| format_path(path) }
26
- else
+ unless config['css_paths']
27
config['css_paths'] = [ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: '')]
28
end
+ config['css_paths'].map! { |path| format_path(path) }
29
30
31
def format_path(path)
0 commit comments