Update README Download Link
Also some comments about bundling that I forgot in my initial add.
This commit is contained in:
@@ -6,7 +6,7 @@ When you don't need a whole framework (or JSX), but also don't want to spend all
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Grab the latest copy of the `fluent-dom-esm.js` file, either by [downloading it](./dist/fluent-dom-esm.js) or doing a `git clone` and pulling it out of the `dist` folder.
|
1. Grab the latest copy of the `fluent-dom-esm.js` file, either by [downloading it](https://git.itsericwoodward.com/eric/fluent-dom-esm/raw/branch/main/dist/fluent-dom-esm.js) or doing a `git clone` and pulling it out of the `dist` folder.
|
||||||
2. Add the newly acquired file to your static site / progressive web app / over-engineered blog.
|
2. Add the newly acquired file to your static site / progressive web app / over-engineered blog.
|
||||||
3. Import it as an ESM module (`import $d from "./src/fluent-dom-esm.js"`).
|
3. Import it as an ESM module (`import $d from "./src/fluent-dom-esm.js"`).
|
||||||
4. Profit!
|
4. Profit!
|
||||||
@@ -14,7 +14,7 @@ When you don't need a whole framework (or JSX), but also don't want to spend all
|
|||||||
### Occasionally Asked Questions
|
### Occasionally Asked Questions
|
||||||
|
|
||||||
- _How can I use this in Node?_ You can't, AFAIK. It requires access to the HTML `Document` object from the browser.
|
- _How can I use this in Node?_ You can't, AFAIK. It requires access to the HTML `Document` object from the browser.
|
||||||
- _How can I minify or bundle this?_ You shouldn't, IMHO. JavaScript is meant to be read by humans _AND_ machines.
|
- _How can I minify or bundle this?_ You shouldn't, IMHO. JavaScript is meant to be read by humans _AND_ machines. If you want to go further down this path, I can't help you.
|
||||||
|
|
||||||
## Building / Modifying
|
## Building / Modifying
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user