You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Defines a size-optimized profile for the WASM bundle in release mode
91
+
[profile.wasm-release]
92
+
inherits = "release"
93
+
opt-level = 'z'
94
+
lto = true
95
+
codegen-units = 1
96
+
panic = "abort"
97
+
98
+
[package.metadata.leptos]
99
+
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
100
+
output-name = "pgml_dashboard"
101
+
102
+
# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup.
103
+
site-root = "target/site"
104
+
105
+
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
106
+
# Defaults to pkg
107
+
site-pkg-dir = "pkg"
108
+
109
+
# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css
110
+
# style-file = "style/main.scss"
111
+
# Assets source dir. All files found here will be copied and synchronized to site-root.
112
+
# The assets-dir cannot have a sub directory with the same name/path as site-pkg-dir.
113
+
#
114
+
# Optional. Env: LEPTOS_ASSETS_DIR.
115
+
assets-dir = "public"
116
+
117
+
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
118
+
site-addr = "127.0.0.1:3000"
119
+
120
+
# The port to use for automatic reload monitoring
121
+
reload-port = 3001
122
+
123
+
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.
124
+
# [Windows] for non-WSL use "npx.cmd playwright test"
125
+
# This binary name can be checked in Powershell with Get-Command npx
126
+
end2end-cmd = "npx playwright test"
127
+
end2end-dir = "end2end"
128
+
129
+
# The browserlist query used for optimizing the CSS.
130
+
browserquery = "defaults"
131
+
132
+
# The environment Leptos will run in, usually either "DEV" or "PROD"
133
+
env = "DEV"
134
+
135
+
# The features to use when compiling the bin target
136
+
#
137
+
# Optional. Can be over-ridden with the command line parameter --bin-features
138
+
bin-features = ["ssr"]
139
+
140
+
# If the --no-default-features flag should be used when compiling the bin target
141
+
#
142
+
# Optional. Defaults to false.
143
+
bin-default-features = false
144
+
145
+
# The features to use when compiling the lib target
146
+
#
147
+
# Optional. Can be over-ridden with the command line parameter --lib-features
148
+
lib-features = ["hydrate"]
149
+
150
+
# If the --no-default-features flag should be used when compiling the lib target
151
+
#
152
+
# Optional. Defaults to false.
153
+
lib-default-features = false
154
+
155
+
# The profile to use for the lib target when compiling for release
0 commit comments