summaryrefslogtreecommitdiff
path: root/date-fns/examples/rollup/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/examples/rollup/README.md')
-rw-r--r--date-fns/examples/rollup/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/date-fns/examples/rollup/README.md b/date-fns/examples/rollup/README.md
new file mode 100644
index 0000000..b144f68
--- /dev/null
+++ b/date-fns/examples/rollup/README.md
@@ -0,0 +1,23 @@
+# Usage With Rollup
+
+See [example.js](./example.js), [fp.js](./fp.js) and [misc.js](./misc.js) for source code examples.
+
+See [package.json scripts](./package.json) for CLI usage.
+
+## Build Example
+
+```sh
+yarn
+yarn run build
+```
+
+See ./dist for output.
+
+## Minimal Build Size
+
+You can see minimal build size (when you use just one function):
+
+```sh
+gzip-size dist/example.min.js | pretty-bytes
+#=> 6.22 kB
+```