diff --git a/.jsdocrc b/.jsdocrc
new file mode 100644
index 0000000..ea8724d
--- /dev/null
+++ b/.jsdocrc
@@ -0,0 +1,5 @@
+{
+ "plugins": [
+ "plugins/markdown"
+ ]
+}
diff --git a/.travis.yml b/.travis.yml
index ddb7152..7bbebca 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,10 @@ node_js:
- 12
- 10
- 8
+branches:
+ only:
+ - master
+ - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
install:
- npm install
- npm install --global npx
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ffac07..3f503bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
---
+## [9.1.0] – 2019-09-20
+### Added
+* [#140] API docs.
+
+### Changed
+* [#187] Bump `babel-preset-minify` dependency to `^0.5.1`.
+
## [9.0.0] – 2019-06-29
### Added
* [#159] Support for Node 12.
@@ -176,12 +183,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[#133]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/133
[#137]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/137
[#138]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/138
+[#140]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/140
[#143]: https://github.com/Comandeer/rollup-plugin-babel-minify/pull/143
[#144]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/144
[#146]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/146
[#159]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/159
[#169]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/169
+[#187]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/187
+[9.1.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v9.0.0...v9.1.0
[9.0.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v8.0.0...v9.0.0
[8.0.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v7.0.0...v8.0.0
[7.0.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v6.2.0...v7.0.0
diff --git a/README.md b/README.md
index 6be267e..7fb8b8b 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,8 @@ There are additional options:
* [`@comandeer/babel-plugin-banner`](https://www.npmjs.com/package/@comandeer/babel-plugin-banner),
* [`@babel/plugin-syntax-dynamic-import`](https://www.npmjs.com/package/@babel/plugin-syntax-dynamic-import) (since 7.0.0).
+Check [API docs](https://comandeer.github.io/rollup-plugin-babel-minify) for more detailed description.
+
## License
See [LICENSE](./LICENSE) file for details.
diff --git a/docs/MinifyOptions.jsdoc.html b/docs/MinifyOptions.jsdoc.html
new file mode 100644
index 0000000..ba21fa8
--- /dev/null
+++ b/docs/MinifyOptions.jsdoc.html
@@ -0,0 +1,108 @@
+
+
+
+
+
+
Home
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rollup-plugin-babel-minify
+
+Allows using babel-minify with Rollup.
+Installation
+npm install rollup-plugin-babel-minify [--save-dev]
+
+Usage
+import { rollup } from 'rollup';
+import minify from 'rollup-plugin-babel-minify';
+
+rollup( {
+ input: './src/index.js',
+ plugins: [
+ minify( {
+ // Options for babel-minify.
+ } )
+ ]
+} );
+
+For the list of options, check babel-minify preset's docs.
+There are additional options:
+
+comments
(default: true
): indicates if comments should be preserved in source;
+banner
(default: undefined
): the comment which should be prepended to the transformed bundle;
+bannerNewLine
(since 4.0.0, default: false
): indicates if the banner comment should be followed by a new line;
+sourceMap
(default: true
): indicates if sourcemap should be generated;
+plugins
(since 6.2.0): indicates which Babel plugins should be loaded alongside minify preset; two plugins are loaded by default:
+
+
+
+License
+See LICENSE file for details.
+
+
+
+
+
+
+
+
+
+