8000 Merge pull request #65 from pyscript/terser-minimize · YComputer/pyscript@bb78ff7 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb78ff7

Browse files
authored
Merge pull request pyscript#65 from pyscript/terser-minimize
got pyscript.js at 1.2mb down to pyscript.min.js at 455k
2 parents 2df4400 + f11a618 commit bb78ff7

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