remove cache busting
This commit is contained in:
parent
d9066defce
commit
5e78e67fc8
2 changed files with 33 additions and 29 deletions
|
|
@ -25,8 +25,8 @@
|
|||
<meta name="theme-color" content="#FFFFFF">
|
||||
|
||||
<?php if (Dir::exists('assets/dist')): ?>
|
||||
<script type="module" src="<?= url('assets/dist/index.js') ?>?version=<?= page('projects')->siteVersion() ?>" defer></script>
|
||||
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>?version=<?= page('projects')->siteVersion() ?>">
|
||||
<script type="module" src="<?= url('assets/dist/index.js') ?>" defer></script>
|
||||
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>">
|
||||
<?php else: ?>
|
||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ mode }) => {
|
||||
return {
|
||||
plugins: [vue()],
|
||||
base: '/',
|
||||
build: {
|
||||
|
|
@ -12,6 +13,8 @@ export default defineConfig({
|
|||
assetFileNames: 'assets/dist/[name].[ext]',
|
||||
},
|
||||
},
|
||||
sourcemap: mode === 'staging',
|
||||
minify: mode === 'production',
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
|
|
@ -30,4 +33,5 @@ export default defineConfig({
|
|||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue