12 lines
No EOL
290 B
Text
12 lines
No EOL
290 B
Text
def main [release: bool = false] {
|
|
|
|
mut wasm_pack_args = [ build --target web ]
|
|
if $release {
|
|
$wasm_pack_args = $wasm_pack_args ++ [ --release ]
|
|
}
|
|
|
|
wasm-pack ...$wasm_pack_args
|
|
|
|
cp pkg/frontend.js ../backend/static
|
|
cp pkg/frontend_bg.wasm ../backend/static
|
|
} |