@lopatnov/rollup-plugin-uglify 2.1.0 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -177,7 +177,7 @@
177
177
 
178
178
  APPENDIX:
179
179
 
180
- Copyright 2019 O.Lopatnov
180
+ Copyright 2019-2021 O.Lopatnov
181
181
 
182
182
  Licensed under the Apache License, Version 2.0 (the "License");
183
183
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -1,8 +1,13 @@
1
- # @lopatnov/rollup-plugin-uglify
1
+ # @lopatnov/rollup-plugin-uglify [![Twitter][twitterbage]][tweet] [![LinkedIn][linkedinbage]][linkedin]
2
2
 
3
+ [![npm](https://img.shields.io/npm/dt/@lopatnov/rollup-plugin-uglify)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)
3
4
  [![NPM version](https://badge.fury.io/js/%40lopatnov%2Frollup-plugin-uglify.svg)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)
4
- ![License](https://img.shields.io/github/license/lopatnov/rollup-plugin-uglify)
5
- [![Twitter](https://img.shields.io/twitter/url?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40lopatnov%2Frollup-plugin-uglify)](https://twitter.com/intent/tweet?text=Wow:&url=https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)
5
+ [![License](https://img.shields.io/github/license/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/blob/master/LICENSE)
6
+ [![GitHub issues](https://img.shields.io/github/issues/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/issues)
7
+ [![GitHub forks](https://img.shields.io/github/forks/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/network)
8
+ [![GitHub stars](https://img.shields.io/github/stars/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/stargazers)
9
+ [![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/@lopatnov/rollup-plugin-uglify)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify?activeTab=dependencies)
10
+ ![GitHub top language](https://img.shields.io/github/languages/top/lopatnov/rollup-plugin-uglify)
6
11
 
7
12
  A rollup plugin to minify javascript
8
13
 
@@ -46,19 +51,57 @@ export default {
46
51
  //...
47
52
  plugins: [
48
53
  //...
49
- uglify()
50
- ]
54
+ uglify(),
55
+ ],
51
56
  };
52
57
  ```
53
58
 
54
- ## Changelog
59
+ #### with options
55
60
 
56
- | Version | Changes |
57
- |--:|:--|
58
- | 2.1.0 | Added behavior for async terser result |
61
+ ```typescript
62
+ export default {
63
+ //...
64
+ plugins: [
65
+ //...
66
+ uglify({
67
+ //options: IUglifyOptions
68
+ }),
69
+ ],
70
+ };
71
+ ```
72
+
73
+ #### Options
74
+
75
+ `uglify` function has optional argument `options: IUglifyOptions`.
76
+
77
+ `IUglifyOptions` is an interface, that extends [`MinifyOptions`][minify-options] of `terser` package.
78
+
79
+ `IUglifyOptions` contains:
80
+
81
+ - `include?: string | RegExp`
82
+ - `exclude?: string | RegExp`
83
+
84
+ A valid minimatch pattern, or array of patterns to include / exclude files. If `include` is omitted or has zero length, filter will return true by default. Otherwise, an ID must match one or more of the minimatch patterns, and must not match any of the `exclude` patterns.
85
+
86
+ ## Donate
87
+
88
+ [![Charity Health][charity_health]][dobro]
89
+
90
+ Open source software is just a hobby. I am making it just for fun. A small amount of help will be more significant for charitable foundations. I propose to pay attention to the various local funds or to the volunteers in my country. I hope this will make someone's life better.
91
+
92
+ ## Rights and Agreements [![LinkedIn][linkedinbage]][linkedin]
93
+
94
+ Contact me in LinkedIn, I will consider profitable business offers. I am Computer Software Engineer, individual entrepreneur. I develop software of various complexity for the web, desktop, mobile and embedded devices. I have expertise in web development using .NET, Angular and React frameworks, Microsoft and Google technologies, working with the North American and European markets through reseller companies by B2B business model. I was a part of development teams and worked independently with enterprise projects, digital technologies, fintech projects, real estate, barcode software and petroleum industry. I would like to note that I have not bad analytical skills. I'm improving my skills continuously and I have recommendations.
59
95
 
60
- ## Rights and Agreements
96
+ License [Apache-2.0][license]
61
97
 
62
- License [Apache-2.0](https://github.com/lopatnov/rollup-plugin-uglify/blob/master/LICENSE)
98
+ Copyright 2019-2022 Oleksandr Lopatnov
63
99
 
64
- Copyright 2019 Oleksandr Lopatnov
100
+ [minify-options]: https://terser.org/docs/api-reference#minify-options-structure
101
+ [license]: https://github.com/lopatnov/rollup-plugin-uglify/blob/master/LICENSE
102
+ [twitterbage]: https://img.shields.io/twitter/url?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40lopatnov%2Frollup-plugin-uglify
103
+ [tweet]: https://twitter.com/intent/tweet?text=I%20want%20to%20share%20TypeScript%20library:&url=https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify
104
+ [linkedinbage]: https://img.shields.io/badge/LinkedIn-lopatnov-informational?style=social&logo=linkedin
105
+ [linkedin]: https://www.linkedin.com/in/lopatnov/
106
+ [dobro]: https://dobro.ua/en/projects/category/zdorovia?page=1&category=zdorovia&tag=28
107
+ [charity_health]: https://img.shields.io/badge/Charity%20Health-Dobro-red?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABBVBMVEUAAAAAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWT///+PPo6DAAAAVXRSTlMAAA4wOR0CAUe/7vPbfA9K5PyKBAPF9PL47f7qN2QiW0V+mpvejJWBnaBanDWLpUva3aGemaa7o1d7rY2nXt/G/eszLmoUZ4mAT+ePBU3D3IIREDEe6n6MQgAAAAFiS0dEVgoN6YkAAAAHdElNRQfkCAcPCB1MJSGgAAAAlElEQVQY02NgIB0wMjIxs7CyMcIF2Dk4ubh5ePngIvwCoUAgKCTMyMjOyCbCziAqJi4hKSUlLSMrJ6+gqKTMoKKqqqauoaGppa2jq6epb8BgqGFkbGJqZm6hZmllbWNrx2AfKuXgIBXq6OSs6uLq5u7B4OkFMtTB24cRCEC2sPn6cXH7BwQyIhwWFMwSIsJIkm9QAQBayRNRV4rFmQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOC0wN1QxNTowODoyOSswMjowMBaHG7YAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDgtMDdUMTU6MDg6MjkrMDI6MDBn2qMKAAAAV3pUWHRSYXcgcHJvZmlsZSB0eXBlIGlwdGMAAHic4/IMCHFWKCjKT8vMSeVSAAMjCy5jCxMjE0uTFAMTIESANMNkAyOzVCDL2NTIxMzEHMQHy4BIoEouAOoXEXTyQjWVAAAAAElFTkSuQmCC
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'rollup';
1
+ import { Plugin } from "rollup";
2
2
  import { MinifyOptions } from "terser";
3
3
  export interface IUglifyOptions extends MinifyOptions {
4
4
  include?: string | RegExp;