Browse Source

build(npm/compile): greenkeep dev dependencies

bump rollup to 1.x major and swap uglify plugin for terser
Josh Habdas 9 months ago
parent
commit
0ffa091af2
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
3 changed files with 820 additions and 973 deletions
  1. 812
    963
      package-lock.json
  2. 6
    7
      package.json
  3. 2
    3
      rollup.config.js

+ 812
- 963
package-lock.json
File diff suppressed because it is too large
View File


+ 6
- 7
package.json View File

@@ -31,13 +31,12 @@
31 31
     }
32 32
   },
33 33
   "devDependencies": {
34
-    "rimraf": "^2.6.2",
35
-    "rollup": "^0.63.5",
36
-    "rollup-plugin-license": "^0.6.0",
37
-    "rollup-plugin-uglify": "^2.0.1",
38
-    "standard": "^11.0.1",
39
-    "standard-version": "^4.4.0",
40
-    "uglify-es": "^3.3.9"
34
+    "rimraf": "^2.6.3",
35
+    "rollup": "^1.6.0",
36
+    "rollup-plugin-license": "^0.8.1",
37
+    "rollup-plugin-terser": "^4.0.4",
38
+    "standard": "^12.0.1",
39
+    "standard-version": "^5.0.1"
41 40
   },
42 41
   "license": "Zlib"
43 42
 }

+ 2
- 3
rollup.config.js View File

@@ -1,6 +1,5 @@
1
-import uglify from 'rollup-plugin-uglify'
1
+import { terser } from 'rollup-plugin-terser'
2 2
 import license from 'rollup-plugin-license'
3
-import { minify } from 'uglify-es'
4 3
 
5 4
 const defaultConfig = {
6 5
   input: 'src/fetch-inject.js',
@@ -34,7 +33,7 @@ const minifiedConfigs = activeConfigs.reduce(
34 33
   (minifiedConfigs, activeConfig) => minifiedConfigs.concat(
35 34
     Object.assign({}, activeConfig, {
36 35
       plugins: [
37
-        uglify({}, minify),
36
+        terser(),
38 37
         license({ banner: `/*! Fetch Inject v<%= pkg.version %> | Copyright (C) Josh Habdas <jhabdas@protonmail.com> (https://habd.as) | @license Zlib */` }),
39 38
         ...activeConfig.plugins
40 39
       ],

Loading…
Cancel
Save