Skip to content

Commit 339bb94

Browse files
committed
build: add build target for CDN deployment
1 parent 3fcfdcd commit 339bb94

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"geolocation"
2828
],
2929
"main": "dist/index.cjs.js",
30-
"browser": "dist/geofire.js",
30+
"browser": "dist/geofire.min.js",
3131
"module": "dist/index.esm.js",
3232
"typings": "dist/index.d.ts",
3333
"files": [

rollup.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ const completeBuilds = [{
3636
},
3737
plugins: [...plugins, uglify()]
3838
},
39+
{
40+
input: 'src/index.ts',
41+
output: {
42+
file: 'dist/geofire.js',
43+
format: 'umd',
44+
name: GLOBAL_NAME
45+
},
46+
plugins: [...plugins]
47+
}
3948
];
4049

4150
export default [...completeBuilds];

0 commit comments

Comments
 (0)