https://github.com/jcubic/static
static files used with cdn.jsdelivr.net
https://github.com/jcubic/static
Last synced: about 16 hours ago
JSON representation
static files used with cdn.jsdelivr.net
- Host: GitHub
- URL: https://github.com/jcubic/static
- Owner: jcubic
- Created: 2019-10-27T09:02:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-12T18:42:13.000Z (2 months ago)
- Last Synced: 2025-03-28T03:14:45.887Z (18 days ago)
- Language: JavaScript
- Size: 4.27 MB
- Stars: 4
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - jcubic/static - static files used with cdn.jsdelivr.net (JavaScript)
README
# static
Static Assets:
usage example:
* https://cdn.statically.io/gh/jcubic/static/master/js/lzjb.js
* https://cdn.jsdelivr.net/gh/jcubic/static@master/js/lzjb.js## Create a Bundle
For bunlding whole library you can use
```bash
npm install
./build []
```Name is optional for when a module have dashes. It will create a file `.min.js` in /js directory.
If bundling doesn't work you can create a file named index.js
```javascript
import { configureSingle, fs } from '@zenfs/core';
import { IndexedDB } from '@zenfs/dom';export { configureSingle, fs, IndexedDB };
```and use esbuild to creae IIFE for the browser.
```bash
npx esbuild index.js --bundle --minify --format=iife --global-name=ZenFS --outfile=js/zenfs.min.js
```