A single, standalone version of Preact, HTM and Preact Signals. No external dependencies, just one single file.
npm install preact-htm-signals-standalone
A single, standalone version of Preact, HTM and Preact Signals. No external dependencies, just one single file.
One single file that you can use via CDN or download locally for offline use.
``html`
I don't recommend installing this package via NPM. It's best to install Preact, HTM and Preact Signals separately:
`sh`
npm install preact htm @preact/signalsor yarn
yarn add preact htm @preact/signalsor pnpm
pnpm install preact htm @preact/signals
My main motivation is to be able to download the entirety of Preact + HTM + Preact Signals offline in a single file.
You can absolutely do the following (and it works fine):
`html`
or go shorter and do this:
`html`
or even shorter (via npm.reversehttp.com, thanks Jason Miller for the tool!):
`html`
However, due to my work limitations (i.e. my internal Preact apps run on restricted corp intranet), having a downloadable, offline version is required, hence the need for a prebundled, no-dependency, single script that I can easily download and use offline.
Simply put, my ideal situation looks like this (made possible by this project):
`html`
Inspired by the standalone version of Preact + HTM.
All rights belong to Preact, HTM and Preact Signals owners/maintainers.
Install and bundle them (via Microbundle):
`sh``
git clone https://github.com/mujahidfa/preact-htm-signals-standalone.git
cd preact-htm-signals-standalone
pnpm i
pnpm bundle
npm publish --dry-run # to test out publishing to npm
npm publish