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,33 +1,37 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: '/',
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: 'assets/dist/[name].js',
|
||||
assetFileNames: 'assets/dist/[name].[ext]',
|
||||
export default defineConfig(({ mode }) => {
|
||||
return {
|
||||
plugins: [vue()],
|
||||
base: '/',
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: 'assets/dist/[name].js',
|
||||
assetFileNames: 'assets/dist/[name].[ext]',
|
||||
},
|
||||
},
|
||||
sourcemap: mode === 'staging',
|
||||
minify: mode === 'production',
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
ignored: [
|
||||
'**/node_modules/**',
|
||||
'**/.git/**',
|
||||
'**/.cache/**',
|
||||
'**/.vite/**',
|
||||
'**/dist/**',
|
||||
'**/*.log',
|
||||
'**/.idea/**',
|
||||
'**/.vscode/**',
|
||||
'**/public/assets/**',
|
||||
'**/local/**',
|
||||
'/public/**',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
ignored: [
|
||||
'**/node_modules/**',
|
||||
'**/.git/**',
|
||||
'**/.cache/**',
|
||||
'**/.vite/**',
|
||||
'**/dist/**',
|
||||
'**/*.log',
|
||||
'**/.idea/**',
|
||||
'**/.vscode/**',
|
||||
'**/public/assets/**',
|
||||
'**/local/**',
|
||||
'/public/**',
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue