Page.addCss
$page.addCss($urlOrCss) -> self
Description
Add a CSS stylesheet asset to the <head> of the document.
The first argument can be one of the following:
- A URL to an external stylesheet file.
- A TypeString that will be inlined in a <style>tag.
$page.addCss(url'assets/app.css')
$page.addCss(darkCss())
tem darkCss {
    body {
        background-color: #222;
        color: #eee;
    }
}
File Compression
Local CSS and JS URLs will automatically be minified and gzip compressed, saving up to 75% over the wire.
This can be changed with the compressAssets configuration.
It will also append a cache parameter with the file’s modify time (e.g. v=1245673424) to support client-side caching.