Skip to content

Commit 6af4b0e

Browse files
authored
Maintenance mode
Fixes #9
1 parent 0ae956b commit 6af4b0e

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 3.1.2
4+
*2019-01-23*
5+
* Updated readme. Plugin is now in maintenance mode, only bugs will be addressed.
6+
37
## Version 3.1.1
48
*2019-01-14*
59
* Decreased rollup peer-dependency version.

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
# rollup-plugin-conditional
22
A proxy plugin for conditionally executing rollup plugins.
3+
<br>
4+
<strong>NOTE:</strong> This plugin has entered maintenance only mode, meaning that only bugs will be fixed. See **`But do I really need it`** section to accomplish the same thing without a plugin.
35

46
## Why
57
There are times when you only want to run a plugin if certain conditions are met. This plugin aims to simplify that setup.
68

9+
## But do I really need it?
10+
Not really, in relatively newer versions on rollup you can accomplish the same thing using a simple spread mechanic:
11+
12+
```js
13+
export default {
14+
...
15+
plugins: [
16+
...isProduction ? [
17+
licence(),
18+
strip(),
19+
uglify(),
20+
gzip()
21+
] : []
22+
]
23+
};
24+
```
25+
26+
In the end, this syntax is better because:
27+
* It reduces the cost of overhead and increases performance slightly
28+
* It reduces your dependencies by one
29+
730
## Installation
831

932
```bash

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-conditional",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "Conditionally execute rollup plugins",
55
"main": "build/rollup-plugin-conditional.js",
66
"module": "src/index.js",

0 commit comments

Comments
 (0)