refactor: migrate to vite for critical scss bundling, remove dart sass dependency

Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
Sped0n
2025-11-12 16:56:30 +08:00
committed by Ryan
parent 8b3b5cd77a
commit 4b1f529589
9 changed files with 309 additions and 30 deletions

16
docs.md
View File

@@ -33,19 +33,6 @@ _[Contents](#contents)_
hugo v0.152.2+extended+withdeploy darwin/arm64 BuildDate=unknown VendorInfo=nixpkgs
```
- [Dart Sass](https://gohugo.io/functions/css/sass/#dart-sass) (or install it with `npm install -g sass-embedded`)
```bash
sass --embedded --version
{
"protocolVersion": "2.4.0",
"compilerVersion": "1.70.0",
"implementationVersion": "1.70.0",
"implementationName": "dart-sass",
"id": 0
}
```
- [pnpm](https://pnpm.io/installation) and [Node.js](https://nodejs.org/en/download), please note that these two are only needed for customizations or development.
```bash
@@ -273,8 +260,7 @@ https://gohugo.io/templates/sitemap-template/#configuration
_[Contents](#contents)_
- Ensure `sass --embedded --version` return a valid result.
- Run `hugo` command.
Bridget will work as a normal Hugo theme (if you don't have needs to customize), https://gohugo.io/getting-started/usage/ is a great start.
For further reading, you can refer to the `scripts` field of `package.json`.