Skip to content

Commit

Permalink
updated to rollup-plugin-terser
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Feb 28, 2022
1 parent 3cdc23c commit 25e674e
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 78 deletions.
215 changes: 141 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"node-sass": "^6.0.1",
"npm-run-all": "^4.1.5",
"rollup": "^2.67.2",
"rollup-plugin-uglify": "^6.0.4",
"rollup-plugin-terser": "^7.0.2",
"semistandard": "^9.0.0",
"sinon": "^13.0.1",
"sinon-chai": "3.7.0",
Expand Down Expand Up @@ -83,4 +83,4 @@
]
},
"style": "./dist/esri-leaflet-geocoder.css"
}
}
4 changes: 2 additions & 2 deletions profiles/production.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { uglify } from 'rollup-plugin-uglify';
import { terser } from 'rollup-plugin-terser';
import config from './base.js';

config.output.file = 'dist/esri-leaflet-geocoder.js';

// use a Regex to preserve copyright text
config.plugins.push(uglify({output: {comments: /Institute, Inc/}}));
config.plugins.push(terser({ format: { comments: /Institute, Inc/ } }));

export default config;

0 comments on commit 25e674e

Please sign in to comment.