Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bundles update from master
  • Loading branch information
Kwpolska committed May 29, 2015
1 parent 6c1c443 commit 4066edc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stories/creating-a-theme.txt
Expand Up @@ -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.
Expand Down

0 comments on commit 4066edc

Please sign in to comment.