rollup-plugin-websqz 1.0.3 → 1.0.4

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.
package/README.md CHANGED
@@ -2,8 +2,7 @@
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
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
5
+ `npm i rollup-plugin-websqz`
7
6
 
8
7
  ## Usage
9
8
  ```js
@@ -16,12 +15,18 @@ export default defineConfig({
16
15
  });
17
16
  ```
18
17
 
19
- See the [example](./example) for a working example with support for `vite-plugin-glsl`.
18
+ See the [example](https://github.com/r00tkids/rollup-plugin-websqz/tree/main/example) for a working example with support for `vite-plugin-glsl`.
20
19
 
21
20
  ## Example Options
22
21
  ```js
23
22
  websqz({
24
- websqzPath: null, // It's resolved to the websqz executable installed when installing the npm package, else it'll try to execute based on $PATH
23
+ /*
24
+ Full path to the websqz executable.
25
+ If null (default), the plugin uses the websqz executable
26
+ installed when installing the npm package.
27
+ Otherwise it will try to resolve websqz from your system PATH.
28
+ */
29
+ websqzPath: null,
25
30
  fileHooks: [
26
31
  {
27
32
  filter: /\.glsl$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-websqz",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,6 +35,7 @@
35
35
  "scripts": {
36
36
  "build": "rollup -c",
37
37
  "build:watch": "rollup -c -w",
38
- "build:dts": "tsc --emitDeclarationOnly"
38
+ "build:dts": "tsc --emitDeclarationOnly",
39
+ "postinstall": "node scripts/install.js"
39
40
  }
40
41
  }
package/dist/bin/websqz DELETED
Binary file