Skip to content

Commit 5163871

Browse files
feat: upgrade to astro 2 + add unplugin-fonts
1 parent 0f6bf36 commit 5163871

File tree

6 files changed

+803
-1144
lines changed

6 files changed

+803
-1144
lines changed

astro.config.mjs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
import { defineConfig } from 'astro/config';
2+
import Unfonts from 'unplugin-fonts/astro'
23

34
// https://astro.build/config
4-
export default defineConfig({});
5+
export default defineConfig({
6+
integrations: [
7+
Unfonts({
8+
google: {
9+
families: [
10+
'Material+Icons',
11+
{
12+
name: 'Roboto',
13+
styles: 'wght@300;400;500;700',
14+
},
15+
{
16+
name: 'Nunito',
17+
styles: 'wght@400;600;700;800'
18+
},
19+
],
20+
},
21+
})
22+
]
23+
});

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,26 @@
1717
"astro": "astro"
1818
},
1919
"dependencies": {
20-
"@alpinejs/collapse": "3.10.5",
21-
"@alpinejs/intersect": "3.10.5",
22-
"@alpinejs/persist": "3.10.5",
23-
"@iconify/iconify": "3.0.1",
24-
"alpinejs": "3.7.1",
25-
"astro": "1.7.1",
20+
"@alpinejs/collapse": "3.12.0",
21+
"@alpinejs/intersect": "3.12.0",
22+
"@alpinejs/persist": "3.12.0",
23+
"@iconify/iconify": "3.1.0",
24+
"alpinejs": "3.12.0",
25+
"astro": "2.1.3",
2626
"bulma": "0.9.4",
2727
"bulma-css-vars": "0.7.0",
28-
"fuse.js": "6.5.3",
28+
"fuse.js": "6.6.2",
2929
"js-datepicker": "5.18.2",
3030
"lozad": "1.16.0",
31-
"moment": "2.29.1",
31+
"moment": "2.29.4",
3232
"notyf": "3.10.0",
33-
"plyr": "3.7.3",
34-
"sass": "1.57.0",
35-
"simplebar": "5.3.9"
33+
"plyr": "3.7.7",
34+
"sass": "1.59.3",
35+
"simplebar": "6.2.2"
3636
},
3737
"devDependencies": {
38-
"autoprefixer": "10.4.13",
39-
"npm-run-all": "4.1.5"
38+
"autoprefixer": "10.4.14",
39+
"npm-run-all": "4.1.5",
40+
"unplugin-fonts": "^1.0.0"
4041
}
4142
}

0 commit comments

Comments
 (0)