Skip to content

Commit 54da0d8

Browse files
committed
perf: Bundle modern-normalize into Vite to eliminate an external HTTP request entirely
1 parent 21e6629 commit 54da0d8

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
<!-- Performance -->
3939
<link rel="dns-prefetch" href="https://api.buttercms.com">
40-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
4140

4241
<!-- Structured Data -->
4342
<script type="application/ld+json">

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"format": "prettier --write --experimental-cli src/"
1313
},
1414
"dependencies": {
15+
"modern-normalize": "^3.0.1",
1516
"pinia": "^3.0.4",
1617
"vue": "^3.5.28"
1718
},

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createApp } from 'vue'
22
import { createPinia } from 'pinia'
33
import App from './App.vue'
4+
import 'modern-normalize/modern-normalize.css'
45
import './assets/styles/main.scss'
56

67
const app = createApp(App)

0 commit comments

Comments
 (0)