Skip to content

Commit

Permalink
chore: generated sourceMap and minify it (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddmt committed Sep 8, 2021
1 parent 9c3a3bc commit 45f8057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run clean && npm run copy:files && npm run compile && npm run bundle:umd && npm run bundle:umd:min",
"bundle:umd": "rollup dist/index.js --config",
"bundle:umd:min": "terser --ecma 6 --compress --mangle -o dist/maplibre-gl-js-amplify.umd.min.js -- dist/maplibre-gl-js-amplify.umd.js && gzip -9 -c dist/maplibre-gl-js-amplify.umd.min.js > dist/maplibre-gl-js-amplify.umd.min.js.gz",
"bundle:umd:min": "terser --ecma 6 --compress --mangle --source-map \"content='dist/maplibre-gl-js-amplify.umd.js.map'\" -o dist/maplibre-gl-js-amplify.umd.min.js -- dist/maplibre-gl-js-amplify.umd.js && gzip -9 -c dist/maplibre-gl-js-amplify.umd.min.js > dist/maplibre-gl-js-amplify.umd.min.js.gz",
"clean": "rimraf dist",
"compile": "npm run tsc",
"copy:files": "mkdir -p dist/public/ && cp src/public/* dist/public/",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
name: "AmplifyMapLibre",
format: "umd",
file: "dist/maplibre-gl-js-amplify.umd.js",
sourcemap: true,
globals: {
"maplibre-gl": "maplibregl",
"@aws-amplify/core": "aws_amplify_core",
Expand Down

0 comments on commit 45f8057

Please sign in to comment.