Skip to content

Commit 4e1d6f8

Browse files
committed
allow rollup scss
1 parent b62ecfa commit 4e1d6f8

14 files changed

+2706
-2073
lines changed

.supermacy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
stylusSupremacy.insertSemicolons: false
2-
stylusSupremacy.insertBraces: false
1+
stylusSupremacy.insertSemicolons: true
2+
stylusSupremacy.insertBraces: true

layout/partial/head.pug

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ meta#default-theme(data=theme.defaultTheme == "dark-mode" ? "dark" : "light")
2323
meta(name="renderer", content="webkit")
2424
link(rel="shortcut icon", type="image/x-icon", href=url_for(theme.favicon))
2525

26+
link(rel="stylesheet", href=url_for("js_complied/bundle.css"))
2627
link(rel="stylesheet", href=url_for("css/theme/" + (theme.defaultTheme == "dark-mode" ? "dark" : "light") + ".css"))
2728
link(rel="stylesheet", href=url_for("css/style.css"))
2829
link(rel="stylesheet", href=url_for("css/blog_basic.css"))
2930
link(rel="stylesheet", href=url_for("css/font-awesome.min.css"))
30-
link(rel="stylesheet", href=url_for("css/insight.css"))
31-
link(rel="stylesheet", href=url_for("css/search.css"))
3231
link(rel="alternate", type="application/atom+xml", title="ATOM 1.0", href="/atom.xml")
3332

3433
link(rel="preconnect", href="https://fonts.googleapis.com")

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"format:stylus": "stylus-supremacy format ./source/css/**/*.styl -r --options .supermacy.yml",
7-
"format:pretty": "prettier --write ./layout/**/*.pug",
7+
"format:pretty": "prettier --write ./{layout,src}/**/*.{pug,scss}",
88
"format:biome": "biome format --write includes languages scripts source src",
99
"lint": "eslint . --fix",
1010
"format": "pnpm format:stylus && pnpm format:biome && pnpm format:pretty",
@@ -16,6 +16,7 @@
1616
"hexo-renderer-pug": "^0.0.5",
1717
"hexo-renderer-stylus": "^0.2.3",
1818
"rollup": "^4.21.2",
19+
"rollup-plugin-sass": "^1.13.2",
1920
"typescript": "^5.5.4"
2021
},
2122
"devDependencies": {

pnpm-lock.yaml

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import resolve from '@rollup/plugin-node-resolve';
2+
import sass from 'rollup-plugin-sass';
23
import { defineConfig } from 'rollup';
34
import swc from 'unplugin-swc';
45

@@ -23,6 +24,9 @@ export default defineConfig([
2324
},
2425
},
2526
}),
27+
sass({
28+
output: true,
29+
}),
2630
],
2731
},
2832
]);

0 commit comments

Comments
 (0)