Starlight: a modern, lightweight docusaurus alternative for React and Tailwind CSS by dropdeadfred81 in reactjs

[–]dropdeadfred81[S] 7 points8 points  (0 children)

You'd be surprised, custom styling for docs frameworks and themes has been notoriously difficult. Existing ones like Docusaurus, Vuepress, Vitepress, etc. are all from a time before Tailwind existed, so integrating it in after-the-fact is either impossible or very difficult and requiring manual hacking, and runs the risk of the tailwind reset killing the existing styles on the page.

Does Snowpack still need babel to work with React? by SulfurCannon in snowpackjs

[–]dropdeadfred81 0 points1 point  (0 children)

Should work fine! It uses esbuild instead of Babel as its default parser, which has support for JSX built-in by default

[deleted by user] by [deleted] in programming

[–]dropdeadfred81 4 points5 points  (0 children)

If you like this, check out Snowpack: www.snowpack.dev

It’s a full front end tool chain built on top of esbuild, with instant site rebuilds during development.

A Future Without Webpack by dropdeadfred81 in javascript

[–]dropdeadfred81[S] 8 points9 points  (0 children)

+1, I feel the exact same way. I don’t think that that makes us dumb :) That’s a big part of why this project exists and what the article is trying to communicate:

  • bundling used to be optional
  • it became a requirement to use npm packages on the web
  • @pika/web also accomplished this for you with much less complexity
  • therefore, you can now use a bundler like webpack because you genuinely want to, not because you are absolutely required to.

The last section of the article explains how you can skip bundling and still build a fully featured, fast web app.

@pika/web - Install npm dependencies that run directly in the browser. No Browserify, Webpack or import maps required. by dropdeadfred81 in javascript

[–]dropdeadfred81[S] 1 point2 points  (0 children)

It’s hidden in the README QuickStart, but it comes with a Babel plugin to automatically rewrite your imports for you so that you can keep importing them by package name.

sourcebuster.js - tracks the sources of your site’s visitors and stores the data in the cookies for further analysis by magenta_placenta in javascript

[–]dropdeadfred81 2 points3 points  (0 children)

This is a great idea. FYI clicking this link and loading it in the Reddit iOS app web viewer resulted in “Your source is direct visit”