Permalink
Browse files

bundles update from master

  • Loading branch information...
Kwpolska committed May 29, 2015
1 parent 6c1c443 commit 4066edc3f569565c00ab41c5f1f9e2fd294d0e79
Showing with 5 additions and 5 deletions.
  1. +5 −5 stories/creating-a-theme.txt
@@ -779,15 +779,15 @@ Doing the same for layout-reverse, sidebar-overlay and the rest is left as an ex
Bundles
-------
If you have ``WebAssets`` installed and the ``USE_BUNDLES`` option set to True, Nikola can put several CSS or JS files together in a larger file,
If you have ``webassets`` installed and the ``USE_BUNDLES`` option set to True, Nikola can put several CSS or JS files together in a larger file,
which makes sites load faster. To do that, your theme needs a ``bundles`` file where the syntax is::
outputfile1.js: thing1.js, thing2.js, ...
outputfile2.css: thing1.css, thing2.css, ...
outputfile1.js=thing1.js,thing2.js,...
outputfile2.css=thing1.css,thing2.css,...
For this theme, it should be like this::
For the Lanyon theme, it should be like this::
assets/css/all.css=rst.css,code.css,lanyon.css,poole.css
assets/css/all.css=rst.css,code.css,lanyon.css,poole.css,custom.css
**Note:** Some themes also support the ``USE_CDN`` option meaning that in some cases it will load one bundle with all CSS and in other will load some CSS files
from a CDN and others from a bundle. This is complicated and probably not worth the effort.

0 comments on commit 4066edc

Please sign in to comment.