Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

build: stop formatting minified ssg scripts (#3864)

Bogdan Chadkin250cc58db197
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 615d684734..34e1fc0935 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -83,7 +83,7 @@ jobs:
}
}
const results = [
- await assertSize('./fixtures/ssg/dist/client', 480),
+ await assertSize('./fixtures/ssg/dist/client', 308),
await assertSize('./fixtures/webstudio-remix-netlify-functions/build/client', 560),
]
for (const result of results) {
diff --git a/fixtures/ssg/package.json b/fixtures/ssg/package.json
index e4ea480fe7..8565faade5 100644
--- a/fixtures/ssg/package.json
+++ b/fixtures/ssg/package.json
@@ -4,7 +4,7 @@
"description": "",
"scripts": {
"build": "vite build",
- "postbuild": "prettier --write . || true",
+ "postbuild": "prettier --write \"dist/**/*.html\" || true",
"dev": "vite dev",
"typecheck": "tsc",
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",