Skip to content

Commit a704076

Browse files
committed
Switched to Terser for minification [skip ci]
1 parent 2e31d0c commit a704076

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@rollup/plugin-node-resolve": "^13.1.3",
2929
"eslint": "^8.8.0",
3030
"rollup": "^2.67.0",
31-
"rollup-plugin-uglify": "^6.0.2"
31+
"rollup-plugin-terser": "^7.0.2"
3232
},
3333
"dependencies": {
3434
"chartkick": ">=3.2.0"

rollup.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import buble from "@rollup/plugin-buble";
22
import commonjs from "@rollup/plugin-commonjs";
33
import pkg from "./package.json";
44
import resolve from "@rollup/plugin-node-resolve";
5-
import { uglify } from "rollup-plugin-uglify";
5+
import { terser } from "rollup-plugin-terser";
66

77
const input = "src/index.js";
88
const outputName = "VueChartkick";
@@ -55,11 +55,7 @@ export default [
5555
resolve(),
5656
commonjs(),
5757
buble(),
58-
uglify({
59-
output: {
60-
comments: /^!/
61-
}
62-
})
58+
terser()
6359
]
6460
},
6561
{

0 commit comments

Comments
 (0)