feat: Introduce SSG
This commit is contained in:
13 files changed
+157
-47
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import type { RsbuildPlugin } from '@rsbuild/core';
|
||||
|
||||
/**
|
||||
* A minimal Rsbuild plugin for build-time Static Site Generation.
|
||||
* Placeholder for future extension.
|
||||
*/
|
||||
export function ssgPlugin(): RsbuildPlugin {
|
||||
return {
|
||||
name: 'ermnvldmr:ssg-plugin',
|
||||
setup(api) {
|
||||
api.onAfterBuild(async ({ stats }) => {
|
||||
if (!stats) return;
|
||||
console.log('[ssg-plugin] Build finished.');
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user