We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
swc
1 parent fabb948 commit f2b2583Copy full SHA for f2b2583
examples/miso/.swcrc
@@ -0,0 +1,8 @@
1
+{
2
+ "jsc": {
3
+ "minify": {
4
+ "compress": true, // equivalent to {}
5
+ "mangle": true
6
+ },
7
+ }
8
+}
examples/miso/Makefile
@@ -1,6 +1,6 @@
.PHONY= update build
-all: clean update build
+all: clean update build optim
update:
cabal update --with-ghc=javascript-unknown-ghcjs-ghc --with-hc-pkg=javascript-unknown-ghcjs-ghc-pkg
@@ -9,6 +9,9 @@ build:
9
cabal build --with-ghc=javascript-unknown-ghcjs-ghc --with-hc-pkg=javascript-unknown-ghcjs-ghc-pkg
10
cp -v ./dist-newstyle/build/javascript-ghcjs/ghc-9.12.2/miso-todomvc-0.1/x/app/build/app/app.jsexe/all.js .
11
12
+optim:
13
+ bunx swc ./all.js > out.js
14
+
15
serve:
16
http-server .
17
0 commit comments