You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
* Update package-lock.json
* add needed deps
* implement cssnano and autoprefixer on the css feed
* add tests and docs
* elaborate on the api docs
* add snapshot test to reduce ambiguity on minify test
Copy file name to clipboardExpand all lines: README.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,19 @@ Example
85
85
constbundle=awaitcssReader([feed, ...feeds])
86
86
```
87
87
88
-
Returns: `Promise<string>` - A promise that resolves to a bundle string.
88
+
This module has the following API:
89
+
90
+
### function(feeds, [options])
91
+
92
+
Supported arguments are:
93
+
94
+
*`feeds` - Array - An Array of feeds.
95
+
*`options` - Object - configuration.
96
+
*`options.minify` (default: false) Specify whether to minify code using [cssnano](https://cssnano.co/).
97
+
98
+
Returns: `Promise<string>` - A promise that resolves to a bundle string that is processed by [autoprefixer](https://github.com/postcss/autoprefixer).
99
+
100
+
Remember to specify a [browserslist](https://github.com/browserslist/browserslist) in your project to ensure cssnano and autoprefixer support the browsers your users use.
0 commit comments