10000 got pyscript.js at 1.2mb down to pyscript.min.js at 455k · YComputer/pyscript@f11a618 · GitHub
[go: up one dir, main page]

Skip to content

Commit f11a618

Browse files
committed
got pyscript.js at 1.2mb down to pyscript.min.js at 455k
1 parent 2df4400 commit f11a618

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyscriptjs/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ function serve_() {
3737

3838
export default {
3939
input: "src/main.ts",
40-
output: {
40+
output:[
41+
{
4142
sourcemap: true,
4243
format: "iife",
4344
name: "app",
4445
file: "examples/build/pyscript.js",
45-
},
46+
},
47+
{ file: "examples/build/pyscript.min.js", format: "iife", plugins: [terser()] },
48+
],
4649
plugins: [
4750
svelte({
4851
// add postcss config with tailwind

0 commit comments

Comments
 (0)
0