File tree Expand file tree Collapse file tree 6 files changed +33
-22
lines changed Expand file tree Collapse file tree 6 files changed +33
-22
lines changed Original file line number Diff line number Diff line change 1
- import "./styles/tailwind.css" ;
2
- import "./styles/style.scss" ;
3
- import "./styles/theme.scss" ;
4
- import "./styles/font-hack.scss" ;
5
-
6
1
import Alpine from "alpinejs" ;
7
2
import upvote from "./upvote" ;
8
3
import * as tocbot from 'tocbot' ;
Original file line number Diff line number Diff line change
1
+ @font-face {
2
+ font-family : Ark- Pixel- 12- proportional- zh_cn;
3
+ src : url (" ../fonts/fusion-pixel-12px-proportional-zh_hans.woff2" );
4
+ }
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ html {
10
10
box-sizing : inherit ;
11
11
}
12
12
13
- @font-face {
14
- font-family : Ark- Pixel- 12- proportional- zh_cn;
15
- src : url (" ../fonts/fusion-pixel-12px-proportional-zh_hans.woff2" );
16
- }
17
-
18
13
body {
19
14
margin : 0 ;
20
15
padding : 0 ;
Original file line number Diff line number Diff line change
1
+ @tailwind base;
2
+ @tailwind utilities;
3
+ @tailwind components;
4
+
1
5
@import ' buttons' ;
2
6
@import ' header' ;
3
7
@import ' logo' ;
6
10
@import ' pagination' ;
7
11
@import ' footer' ;
8
12
@import ' typed-text' ;
13
+
14
+ @import ' theme' ;
Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title th:text ="${site.title} "> </ title >
8
- < link rel ="stylesheet " th:href ="@{/assets/dist/style.css} " href ="./assets/dist/style.css " />
9
- < script th:src ="@{/assets/dist/main.iife.js} "> </ script >
10
- < style th:if ="${theme.config.basic.pixel_style} ">
11
- body {
12
- font-family : Ark-Pixel-12-proportional-zh_cn, serif;
13
- }
14
- </ style >
8
+ < link rel ="stylesheet " th:href ="@{/assets/dist/style.css} " />
9
+ < link rel ="stylesheet " th:href ="@{/assets/dist/font-hack.css} " />
10
+ < th:block th:if ="${theme.config.basic.pixel_style} ">
11
+ < link rel ="stylesheet " th:href ="@{/assets/dist/font-pixel.css} " />
12
+ < style th:inline ="css ">
13
+ body {
14
+ font-family : Ark-Pixel-12-proportional-zh_cn, serif;
15
+ }
16
+ </ style >
17
+ </ th:block >
18
+ < script th:src ="@{/assets/dist/main.js} "> </ script >
15
19
</ head >
16
20
17
21
< body class ="main ">
Original file line number Diff line number Diff line change @@ -4,15 +4,22 @@ import path from "path";
4
4
import PurgeIcons from "vite-plugin-purge-icons" ;
5
5
6
6
export default defineConfig ( {
7
+ base : "" ,
7
8
plugins : [ PurgeIcons ( ) ] ,
8
9
build : {
9
10
outDir : fileURLToPath ( new URL ( "./templates/assets/dist" , import . meta. url ) ) ,
10
11
emptyOutDir : true ,
11
- lib : {
12
- entry : path . resolve ( __dirname , "src/main.ts" ) ,
13
- name : "main" ,
14
- fileName : "main" ,
15
- formats : [ "iife" ] ,
12
+ rollupOptions : {
13
+ input : {
14
+ main : path . resolve ( __dirname , "src/main.ts" ) ,
15
+ style : path . resolve ( __dirname , "src/styles/style.scss" ) ,
16
+ fontHack : path . resolve ( __dirname , "src/styles/font-hack.scss" ) ,
17
+ fontPixel : path . resolve ( __dirname , "src/styles/font-pixel.scss" ) ,
18
+ } ,
19
+ output : {
20
+ entryFileNames : "[name].js" ,
21
+ assetFileNames : "[name].[ext]" ,
22
+ } ,
16
23
} ,
17
24
} ,
18
25
} ) ;
You can’t perform that action at this time.
0 commit comments