mirror of
https://github.com/silvanshade/tower-lsp-web-demo.git
synced 2025-01-22 11:47:51 +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]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"crates/browser",
|
"crates/browser",
|
||||||
|
|
|
@ -10,8 +10,8 @@ npm install
|
||||||
|
|
||||||
[tasks.build-server]
|
[tasks.build-server]
|
||||||
script = '''
|
script = '''
|
||||||
cargo build
|
cargo build --release
|
||||||
wasm-bindgen --keep-debug --out-dir ./packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/debug/demo_lsp_browser.wasm
|
wasm-bindgen --out-dir ./packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/release/demo_lsp_browser.wasm
|
||||||
'''
|
'''
|
||||||
|
|
||||||
[tasks.build-app]
|
[tasks.build-app]
|
||||||
|
|
|
@ -12,7 +12,7 @@ const config = {
|
||||||
experiments: {
|
experiments: {
|
||||||
asyncWebAssembly: true,
|
asyncWebAssembly: true,
|
||||||
},
|
},
|
||||||
mode: "development",
|
mode: "production",
|
||||||
target: "web",
|
target: "web",
|
||||||
entry: {
|
entry: {
|
||||||
app: "./src/index.ts",
|
app: "./src/index.ts",
|
||||||
|
|
Loading…
Reference in a new issue