mirror of
https://github.com/silvanshade/tower-lsp-web-demo.git
synced 2025-01-22 03:42:50 +00:00
Enable release/production mode
This commit is contained in:
parent
db38b5ed74
commit
40cf89bd9f
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
[profile.release]
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
opt-level = "z"
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/browser",
|
||||
|
|
|
@ -10,8 +10,8 @@ npm install
|
|||
|
||||
[tasks.build-server]
|
||||
script = '''
|
||||
cargo build
|
||||
wasm-bindgen --keep-debug --out-dir ./packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/debug/demo_lsp_browser.wasm
|
||||
cargo build --release
|
||||
wasm-bindgen --out-dir ./packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/release/demo_lsp_browser.wasm
|
||||
'''
|
||||
|
||||
[tasks.build-app]
|
||||
|
|
|
@ -12,7 +12,7 @@ const config = {
|
|||
experiments: {
|
||||
asyncWebAssembly: true,
|
||||
},
|
||||
mode: "development",
|
||||
mode: "production",
|
||||
target: "web",
|
||||
entry: {
|
||||
app: "./src/index.ts",
|
||||
|
|
Loading…
Reference in a new issue