Skip to content

Commit 5e14639

Browse files
committed
chore: remove useless css
1 parent bd3b32e commit 5e14639

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

build.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@ async function runWebpack(isWithoutKatex, isWithoutTiktoken, callback) {
191191
},
192192
}
193193
: {},
194+
isWithoutKatex && isWithoutTiktoken
195+
? {
196+
test: /styles\.scss$/,
197+
loader: 'string-replace-loader',
198+
options: {
199+
multiple: [
200+
{
201+
search: "@import '../fonts/styles.css';",
202+
replace: '',
203+
},
204+
],
205+
},
206+
}
207+
: {},
194208
],
195209
},
196210
})

src/popup/styles.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
11
[data-theme='auto'] {
2-
@import 'github-markdown-css/github-markdown.css';
32
@media screen and (prefers-color-scheme: dark) {
4-
@import 'highlight.js/scss/github-dark.scss';
53
--font-color: #c9d1d9;
64
--theme-color: #202124;
75
--active-color: #3c4043;
86
}
97
@media screen and (prefers-color-scheme: light) {
10-
@import 'highlight.js/scss/github.scss';
118
--font-color: #24292f;
129
--theme-color: #ffffff;
1310
--active-color: #eaecf0;
1411
}
1512
}
1613

1714
[data-theme='dark'] {
18-
@import 'highlight.js/scss/github-dark.scss';
19-
@import 'github-markdown-css/github-markdown-dark.css';
20-
2115
--font-color: #c9d1d9;
2216
--theme-color: #202124;
2317
--active-color: #3c4043;
2418
}
2519

2620
[data-theme='light'] {
27-
@import 'highlight.js/scss/github.scss';
28-
@import 'github-markdown-css/github-markdown-light.css';
29-
3021
--font-color: #24292f;
3122
--theme-color: #ffffff;
3223
--active-color: #eaecf0;

0 commit comments

Comments
 (0)