Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nllsh
· 4y ago · 0 comments
How are you using Deno with minified code? Do you mean importing a minified script like
https://cdn.jsdelivr.net/npm/react/cjs/react.production.min....
?
Comments
[–]
seumars
4y ago
I meant bundling your code for production.
[–]
mark_and_sweep
4y ago
You can use `deno bundle`:
https://deno.land/manual@v1.20.1/tools/bundler.md
[–]
tonyedgecombe
4y ago
Why would you need to do that for code running on Deno? It doesn't need to be sent over the wire.
[–]
seumars
4y ago
Obviously not for server code. Example: serve 'src/app.js' uncompressed during development, and 'assets/app.min.js' during production.