Skip to content

Commit

Permalink
allow rollup scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Lhcfl committed Sep 9, 2024
1 parent b62ecfa commit 4e1d6f8
Show file tree
Hide file tree
Showing 14 changed files with 2,706 additions and 2,073 deletions.
4 changes: 2 additions & 2 deletions .supermacy.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
stylusSupremacy.insertSemicolons: false
stylusSupremacy.insertBraces: false
stylusSupremacy.insertSemicolons: true
stylusSupremacy.insertBraces: true
3 changes: 1 addition & 2 deletions layout/partial/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ meta#default-theme(data=theme.defaultTheme == "dark-mode" ? "dark" : "light")
meta(name="renderer", content="webkit")
link(rel="shortcut icon", type="image/x-icon", href=url_for(theme.favicon))

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

link(rel="preconnect", href="https://fonts.googleapis.com")
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"format:stylus": "stylus-supremacy format ./source/css/**/*.styl -r --options .supermacy.yml",
"format:pretty": "prettier --write ./layout/**/*.pug",
"format:pretty": "prettier --write ./{layout,src}/**/*.{pug,scss}",
"format:biome": "biome format --write includes languages scripts source src",
"lint": "eslint . --fix",
"format": "pnpm format:stylus && pnpm format:biome && pnpm format:pretty",
Expand All @@ -16,6 +16,7 @@
"hexo-renderer-pug": "^0.0.5",
"hexo-renderer-stylus": "^0.2.3",
"rollup": "^4.21.2",
"rollup-plugin-sass": "^1.13.2",
"typescript": "^5.5.4"
},
"devDependencies": {
Expand Down
37 changes: 37 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import resolve from '@rollup/plugin-node-resolve';
import sass from 'rollup-plugin-sass';
import { defineConfig } from 'rollup';
import swc from 'unplugin-swc';

Expand All @@ -23,6 +24,9 @@ export default defineConfig([
},
},
}),
sass({
output: true,
}),
],
},
]);
Loading

0 comments on commit 4e1d6f8

Please sign in to comment.