Skip to content

Commit

Permalink
build: add build target for CDN deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Feiyang1 committed Feb 20, 2019
1 parent 3fcfdcd commit 339bb94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"geolocation"
],
"main": "dist/index.cjs.js",
"browser": "dist/geofire.js",
"browser": "dist/geofire.min.js",
"module": "dist/index.esm.js",
"typings": "dist/index.d.ts",
"files": [
Expand Down
9 changes: 9 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ const completeBuilds = [{
},
plugins: [...plugins, uglify()]
},
{
input: 'src/index.ts',
output: {
file: 'dist/geofire.js',
format: 'umd',
name: GLOBAL_NAME
},
plugins: [...plugins]
}
];

export default [...completeBuilds];

0 comments on commit 339bb94

Please sign in to comment.