mirror of
https://github.com/halo-dev/theme-earth.git
synced 2026-06-05 01:13:07 +08:00
fc3c3522ef
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.