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">
|
<meta name="theme-color" content="#FFFFFF">
|
||||||
|
|
||||||
<?php if (Dir::exists('assets/dist')): ?>
|
<?php if (Dir::exists('assets/dist')): ?>
|
||||||
<script type="module" src="<?= url('assets/dist/index.js') ?>?version=<?= page('projects')->siteVersion() ?>" defer></script>
|
<script type="module" src="<?= url('assets/dist/index.js') ?>" defer></script>
|
||||||
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>?version=<?= page('projects')->siteVersion() ?>">
|
<link rel="stylesheet" href="<?= url('assets/dist/index.css') ?>">
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,37 @@
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig(({ mode }) => {
|
||||||
plugins: [vue()],
|
return {
|
||||||
base: '/',
|
plugins: [vue()],
|
||||||
build: {
|
base: '/',
|
||||||
outDir: 'dist',
|
build: {
|
||||||
rollupOptions: {
|
outDir: 'dist',
|
||||||
output: {
|
rollupOptions: {
|
||||||
entryFileNames: 'assets/dist/[name].js',
|
output: {
|
||||||
assetFileNames: 'assets/dist/[name].[ext]',
|
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