tangled
alpha
login
or
join now
yippee.fun
/
morphlex
0
fork
atom
Precise DOM morphing
morphing
typescript
dom
0
fork
atom
overview
issues
pulls
pipelines
Extract Terser config
joel.drapper.me
2 years ago
7505f2f8
1e2bbd9f
+10
-1
2 changed files
expand all
collapse all
unified
split
package.json
terser-config.json
+1
-1
package.json
···
18
18
"watch": "tsc -w",
19
19
"test:watch": "npm run test -- --watch",
20
20
"lint": "prettier --check ./src ./dist ./test",
21
21
-
"minify": "terser dist/morphlex.js -o dist/morphlex.min.js -c -m --module",
21
21
+
"minify": "terser dist/morphlex.js -o dist/morphlex.min.js --config-file terser-config.json",
22
22
"prepare": "npm run build && npm run minify",
23
23
"ship": "npm run prepare && npm run test && npm run lint && npm publish",
24
24
"format": "prettier --write ./src ./dist ./test",
+9
terser-config.json
···
1
1
+
{
2
2
+
"compress": true,
3
3
+
"mangle": {
4
4
+
"properties": {
5
5
+
"regex": "^_"
6
6
+
}
7
7
+
},
8
8
+
"module": true
9
9
+
}