remove cache busting
This commit is contained in:
parent
d9066defce
commit
5e78e67fc8
2 changed files with 33 additions and 29 deletions
|
|
@ -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