Skip to content

Commit a1f4614

Browse files
committed
Add non-minified stanalone build
closes #291
1 parent bc6ac8d commit a1f4614

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/generate-unpkg.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,19 @@ const {output} = await microbundle({
99
cwd: '.',
1010
format: 'iife',
1111
entries: ['src/unpkg.ts'],
12-
output: 'dist/obs-ws.min.js',
12+
output: 'dist/obs-ws.js',
1313
external: 'none',
1414
generateTypes: false,
15+
compress: false,
1516
});
17+
console.log('Readable build', output);
1618

17-
console.log(output);
19+
const {output: outputMin} = await microbundle({
20+
cwd: '.',
21+
format: 'iife',
22+
entries: ['src/unpkg.ts'],
23+
output: 'dist/obs-ws.min.js',
24+
external: 'none',
25+
generateTypes: false,
26+
});
27+
console.log('Minified build', outputMin);

0 commit comments

Comments
 (0)