Files
Ryan Wang fc3c3522ef Modularize assets & add build code-splitting
Introduce modular asset entrypoints and split styles into per-feature SCSS files for better bundling. Added new TS entry files (src/assets/doc.ts, moment.ts, page.ts, post.ts) and new SCSS modules (doc.scss, markdown-body.scss, moment.scss, prose.scss), and relocated github-markdown.css into src/assets/styles. Refactored src/assets/styles/main.scss to remove markdown/moment/docsme-specific rules now moved to dedicated files. Updated templates (doc*, docs, doc-catalog, moments, page, post) to load the new module entry scripts instead of inlining stylesheet links. Added build code-splitting configuration in vite.config.ts to group vendor modules for optimized bundles.
2026-03-28 11:43:56 +08:00
..