6 ms·
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.js https://c
by nllsh 5y 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.js https://cdn.jsdelivr.net/npm/react/cjs/react.production.min.... ?
- seumars 5y agoI meant bundling your code for production.
- tonyedgecombe 5y agoWhy would you need to do that for code running on Deno? It doesn't need to be sent over the wire.
- seumars 5y agoObviously not for server code. Example: serve 'src/app.js' uncompressed during development, and 'assets/app.min.js' during production.
- mark_and_sweep 5y agoYou can use `deno bundle`: https://deno.land/manual@v1.20.1/tools/bundler.md https://deno.land/manual@v1.20.1/tools/bundler.md