piss

entries

  1. esbuild can build css
    Julia Evans: TIL
  2. Al Sweigart's Python books are available for free
    Julia Evans: TIL
  3. Resources for upgrading Django
    Julia Evans: TIL
  4. You don't have to close <p> or <li> tags
    Julia Evans: TIL
  5. Advice for writing alt text
    Julia Evans: TIL
  6. fx: a jq replacement
    Julia Evans: TIL
  7. CSS supports nested selectors now!
    Julia Evans: TIL
  8. You can use `fzf` to review git commits
    Julia Evans: TIL
  9. strace has a --stack-traces option
    Julia Evans: TIL
  10. In CSS you can populate `content:` with a `data-` attribute
    Julia Evans: TIL
  11. Environment variables with no equals sign
    Julia Evans: TIL
  12. Two ways the mouse wheel works in the terminal
    Julia Evans: TIL
  13. You can run `tty` to see your current TTY
    Julia Evans: TIL
  14. strace's `--tips`
    Julia Evans: TIL
  15. Tiny IP-KVM devices exist
    Julia Evans: TIL
  16. Emoji Kitchen
    Julia Evans: TIL
  17. pip install --user can override system libraries
    Julia Evans: TIL
  18. why the text disappers from my PDF when I print it
    Julia Evans: TIL
  19. `**` works for globbing in the shell
    Julia Evans: TIL
  20. Some programming languages buffer stdout and some don't
    Julia Evans: TIL

esbuild can build css

Julia Evans: TIL

source

<p>I learned recently that CSS supports <a href="https://jvns.ca/til/css-supports-nested-selectors-now/">nested selectors</a>, but browser support still isn&rsquo;t 100%.</p> <p>I found that <a href="https://esbuild.github.io/content-types/#css">esbuild can un-nest the selectors</a>, so I added this to my deployment script so that my CSS works for more people. (I chose the &ldquo;chrome90&rdquo; target extremely arbitrarily)</p> <pre><code>find . -name '*.css' -exec esbuild {} --target=chrome90 --outfile={} \; </code></pre> <p>I like that it&rsquo;s still optional so that I don&rsquo;t have to run it in development, and if esbuild stops existing, my site will still mostly work!</p>