You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ This gem assumes that you'll load the rest of the CSS asyncronously. At the mome
8
8
9
9
This gem uses [Penthouse](https://github.com/pocketjoso/penthouse) to generate the critical CSS.
10
10
11
-
## Update
11
+
## Upgrading to the Latest Release
12
12
13
-
Versions below 0.3.0 are not compatible with this version. Please read the Upgrading from Previous Versions section below for more information.
13
+
Upgrade instructions from each version are included below.
14
14
15
15
## Installation
16
16
@@ -110,7 +110,10 @@ Careful use of these methods allows the developer to generate critical path CSS
110
110
111
111
A user can use these methods to [dynamically generate critical path CSS](https://gist.github.com/taranda/1597e97ccf24c978b59aef9249666c77) without using the `rake critical_path_css:generate` rake task and without hardcoding the application's routes into `config/critical_path_css.yml`. See [this Gist](https://gist.github.com/taranda/1597e97ccf24c978b59aef9249666c77) for an example of such an implementation.
112
112
113
-
## Upgrading from Previous Versions
113
+
## Upgrading from version 0.X.X to 1.0.0
114
+
To maintain the latest version of Penthouse, this gem now depends on NodeJS and NVM to be installed on the system.
115
+
116
+
## Upgrading from a version earlier than 0.3.0
114
117
115
118
The latest version of Critcal Path CSS Rails changes the functionality of the `generate` method. In past versions,
116
119
`generate` would produce CSS for all of the routes listed in `config/critical_path_css.yml`. This functionality has been replaced by the `generate_all` method, and `generate` will only produce CSS for one route.
0 commit comments