Skip to content

Commit db82d53

Browse files
committed
updated README
1 parent d9708d5 commit db82d53

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ You also need to remember to add those new files to the asset pipeline, so they
4747
class Application < Rails::Application
4848
config.assets.precompile += %w( too_big_stylesheet_split2.css )
4949

50+
So, these are the 4 important requirements for your splitted stylesheet:
51+
52+
1. needs to have different filename than orginal, e.g. `original_stylesheet_split2` or `application_split2`
53+
2. needs to add `.split2` as the terminal file extension, e.g. `.css.split2` or `.css.sass.split2`
54+
3. needs to include the content of the orginal stylesheet, e.g. through `//= include 'application'`
55+
4. neess to be added to list of precompiled assets
56+
57+
58+
5059
### 2. Including your split stylesheets
5160

5261
Now that you have split up your big stylesheets at the 4095 limit you need to change your HTML layout, so the split stylesheets are used for older IE versions (IE9 and older).

0 commit comments

Comments
 (0)