1 | ## var styles = build.styles(nodes, [options])
|
2 |
|
3 | `options` (in addition to [builder](./builders.md) options):
|
4 |
|
5 | - `urlPrefx` <''> - prefix urls, ex. `//component.io/` will create urls like `url("//component.io/fortawesome/font-awesome/v4.0.3/css/font-awesome.css")`
|
6 |
|
7 | ## Plugins
|
8 |
|
9 | ### css()
|
10 |
|
11 | This just appends the CSS file as a string.
|
12 |
|
13 | ```js
|
14 | build.styles()
|
15 | .use('styles', builder.plugins.css())
|
16 | ```
|
17 |
|
18 | ### string()
|
19 |
|
20 | Includes a file as a string.
|
21 |
|
22 | ```js
|
23 | build.scripts()
|
24 | .use('templates', builder.plugins.string());
|
25 | ```
|
26 |
|
27 | ### Other
|
28 |
|
29 | - [autoprefixer](https://github.com/component/builder-autoprefixer) - Autoprefixes the CSS files
|