Re:Deno Is Webby
by seumars on Wednesday March 16, 2022 @07:40PM
(#30705597)
Deno is a joy to use server-side. Though as soon as it's used in conjunction with even something simple like minified code, you're forced back to node/npm.
[ Parent
| on HN ]
Re:Deno Is Webby
by mark_and_sweep on Thursday March 17, 2022 @04:25AM
(#30708821)
If you want to bundle and minify JavaScript code, you can use esbuild:
import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
If you want to bundle and minify SCSS, you can use dart-sass: import { useDartSass } from "https://raw.githubusercontent.com/MarkTiedemann/deno-dart-sass/0.1.0/mod.ts";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.... ?
I meant bundling your code for production.
Re:Deno Is Webby
by mark_and_sweep on Thursday March 17, 2022 @08:48AM
(#30710559)
You can use `deno bundle`:
Re:Deno Is Webby
by tonyedgecombe on Thursday March 17, 2022 @05:42AM
(#30709291)
Why would you need to do that for code running on Deno? It doesn't need to be sent over the wire.