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