Skip to content

Commit

Permalink
switch to Vite replacement strings
Browse files Browse the repository at this point in the history
  • Loading branch information
camdendotlol committed Aug 7, 2024
1 parent 3d680d6 commit ce4d5ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', "%VITE_GOOGLE_ANALYTICS_TAG%");
</script>
<script src="https://www.googletagmanager.com/gtag/js?id=%VITE_GOOGLE_ANALYTICS_TAG%"></script>
</head>

<body>
<noscript>
<strong>We're sorry but Topsters 3 doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>

<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"eslint-plugin-vue": "^9.27.0",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vite-plugin-radar": "^0.9.6",
"vue-tsc": "^2.0.26"
}
}
7 changes: 1 addition & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePluginRadar } from 'vite-plugin-radar'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), VitePluginRadar({
analytics: {
id: 'G-4GL8BY0YV1'
}
})]
plugins: [vue()]
})

0 comments on commit ce4d5ef

Please sign in to comment.