Y
Hacker News
new
|
ask
|
show
|
jobs
by
nllsh
1555 days ago
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....
?
1 comments
seumars
1554 days ago
I meant bundling your code for production.
link
mark_and_sweep
1554 days ago
You can use `deno bundle`:
https://deno.land/manual@v1.20.1/tools/bundler.md
link
tonyedgecombe
1554 days ago
Why would you need to do that for code running on Deno? It doesn't need to be sent over the wire.
link
seumars
1554 days ago
Obviously not for server code. Example: serve 'src/app.js' uncompressed during development, and 'assets/app.min.js' during production.
link