1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-01-17 20:28:30 +00:00

feat: upgrade sass architecture

- Modularized the Sass architecture to enhance code maintainability and reduce the output file size
- Replaced deprecated `@import` with `@use` / `@forward`
This commit is contained in:
Cotes Chung
2024-11-21 02:21:34 +08:00
parent 65f960c31a
commit 4782161c4c
44 changed files with 2525 additions and 2502 deletions

View File

@@ -15,7 +15,7 @@
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy/",
"scripts": {
"build": "concurrently npm:build:*",
"build:css": "purgecss -c purgecss.config.js",
"build:css": "node purgecss.js",
"build:js": "rollup -c --bundleConfigAsCjs --environment BUILD:production",
"watch:js": "rollup -c --bundleConfigAsCjs -w",
"lint:scss": "stylelint _sass/**/*.scss",
@@ -69,6 +69,9 @@
}
},
"stylelint": {
"ignoreFiles": [
"_sass/vendor/**"
],
"extends": "stylelint-config-standard-scss",
"rules": {
"no-descending-specificity": null,