Skip to content

Commit 3cc4857

Browse files
committed
Build editor.bundle.js with the rest of the site.
Committing it was costing more than building it at runtime.
1 parent 56ddde4 commit 3cc4857

File tree

4 files changed

+3
-39877
lines changed

4 files changed

+3
-39877
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ surrounding UI using [petite-vue][].
102102
The `npm run build:editor` command uses [Rollup][] to build the final JS bundle
103103
at `playground/next/editor.bundle.js` which contains the browser ready JS code.
104104

105-
Only the first two should be edited. However, `editor.bundle.js` should be built
106-
locally and committed along with the rest of the site to avoid unnecessary build
107-
time/cost/waste at deployment time.
108-
109105
Website Analytics
110106
-----------------
111107

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "json-ld.org homepage",
55
"type": "module",
66
"scripts": {
7-
"build": "eleventy",
8-
"build:editor": "rollup -c && cp playground/next/editor.bundle.js _site/playground/next/editor.bundle.js",
7+
"build": "npm run build:editor && eleventy",
8+
"build:editor": "rollup -c",
99
"pages": "wrangler pages dev _site/ --compatibility-date=2025-04-02",
1010
"watch": "eleventy --watch",
1111
"dev": "wrangler pages dev _site --compatibility-date=2025-04-02 --live-reload --port 8788",

0 commit comments

Comments
 (0)