News for hackers. Stuff that matters.
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.
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";
Re:Deno Is Webby by nllsh on Wednesday March 16, 2022 @07:51PM (#30705688)
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.... ?
Re:Deno Is Webby by seumars on Thursday March 17, 2022 @04:57AM (#30709006)
I meant bundling your code for production.
Re:Deno Is Webby by mark_and_sweep on Thursday March 17, 2022 @08:48AM (#30710559)
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.
Re:Deno Is Webby by seumars on Thursday March 17, 2022 @08:28AM (#30710379)
Obviously not for server code. Example: serve 'src/app.js' uncompressed during development, and 'assets/app.min.js' during production.