File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
generators/critical_path_css Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ defaults : &defaults
2
+ routes :
3
+ - /
4
+
5
+ development :
6
+ << : *defaults
7
+ base_url : http://localhost:3000
8
+
9
+ staging :
10
+ << : *defaults
11
+ base_url : http://staging.example.com
12
+
13
+ production :
14
+ << : *defaults
15
+ base_url : http://example.com
Original file line number Diff line number Diff line change @@ -9,5 +9,11 @@ def copy_rake_task
9
9
task_filename = 'critical_path_css.rake'
10
10
copy_file "../../tasks/#{ task_filename } " , "lib/tasks/#{ task_filename } "
11
11
end
12
+
13
+ # Copy the needed configuration YAML file for generating critical CSS
14
+ def copy_config_file
15
+ task_filename = 'critical_path_css.yml'
16
+ copy_file "../../config/#{ task_filename } " , "config/#{ task_filename } "
17
+ end
12
18
end
13
19
end
You can’t perform that action at this time.
0 commit comments