rollup-plugin-websqz 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # rollup-plugin-websqz
2
2
  Rollup / Vite plugin for using [websqz](https://github.com/r00tkids/websqz) to compress and bundle code and assets into one HTML file. This is intented for intros in the [demoscene](https://en.wikipedia.org/wiki/Demoscene) or size restricted JS challenges.
3
3
 
4
+ ## Install
5
+ 1. `npm i rollup-plugin-websqz`
6
+ 2. `node ./node_modules/rollup-plugin-websqz/scripts/install.js` to install the pre-built websqz executable from https://github.com/r00tkids/websqz
7
+
4
8
  ## Usage
5
9
  ```js
6
10
  // vite.config.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-websqz",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -31,7 +31,6 @@
31
31
  "scripts": {
32
32
  "build": "rollup -c",
33
33
  "build:watch": "rollup -c -w",
34
- "build:dts": "tsc --emitDeclarationOnly",
35
- "postinstall": "node scripts/install.js"
34
+ "build:dts": "tsc --emitDeclarationOnly"
36
35
  }
37
36
  }