Skip to content

Commit 22c9c81

Browse files
committed
Added brotli build
1 parent fd03913 commit 22c9c81

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

package-lock.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"npm-check-updates": "^11.1.9",
115115
"prettier": "^2.2.1",
116116
"rollup": "^2.39.1",
117+
"rollup-plugin-brotli": "^3.1.0",
117118
"rollup-plugin-gzip": "^2.5.0",
118119
"rollup-plugin-replace": "^2.2.0",
119120
"rollup-plugin-terser": "^7.0.2",

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import commonjs from '@rollup/plugin-commonjs'
44
import typescript from 'rollup-plugin-typescript2'
55
import { terser } from 'rollup-plugin-terser'
66
import gzip from 'rollup-plugin-gzip'
7+
import brotli from 'rollup-plugin-brotli'
78

89
const configs = []
910

@@ -61,7 +62,8 @@ function createConfig(pkg, moduleFormat, productive) {
6162
tsconfig: './tsconfig.dist.json'
6263
}),
6364
productive && terser(),
64-
productive && gzip()
65+
productive && gzip(),
66+
productive && brotli()
6567
]
6668
}
6769
}

0 commit comments

Comments
 (0)