-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ssg): make it simple #80
Conversation
🦋 Changeset detectedLatest commit: 25613d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/ssg/src/ssg.ts
Outdated
source: data, | ||
}) | ||
}, | ||
async mkdir() {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed! 4e24768
(#80)
@@ -45,31 +64,27 @@ export const ssgBuild = (options?: SSGOptions): Plugin => { | |||
throw new Error(`Failed to find a named export "default" from ${entry}`) | |||
} | |||
|
|||
console.log(`Build files into temp directory: ${tempDir}`) | |||
const outDir = config.build.outDir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using outDir
from Vite's config is good!
Thanks! @berlysia Great PR! I've left the comments; check them, and could you run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thank you! I'll merge this now and release the new version! |
Based on research in honojs/honox#48
before: Use Vite to build the toSSG generated code. This means that it was built twice.
after: Generate a page with toSSG. That's it.