Skip to content

Commit

Permalink
try warming cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Mar 31, 2023
1 parent 655ffef commit ff65846
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"cssnano": "^6.0.0",
"cy-mobile-commands": "^0.3.0",
"cypress": "^12.9.0",
"vite-plugin-warmup": "0.0.2",
"cypress-file-upload": "^5.0.8",
"cypress-real-events": "^1.7.6",
"dotenv": "^8.6.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/vuetify/vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path'
import fs, { readFileSync } from 'fs'
import { warmup } from 'vite-plugin-warmup'
import { fileURLToPath } from 'url'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
Expand Down Expand Up @@ -53,6 +54,13 @@ export default defineConfig(({ mode }) => {
}
}
]
}),
warmup({
// warm up the files and its imported JS modules recursively
clientFiles: [
'./src/**/*.spec.cy.{js,jsx,ts,tsx}',
'./cypress/support/index.ts',
]
})
],
define: {
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14046,6 +14046,13 @@ vite-plugin-vuetify@^1.0.2:
debug "^4.3.3"
upath "^2.0.1"

vite-plugin-warmup@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/vite-plugin-warmup/-/vite-plugin-warmup-0.0.2.tgz#cd5f427c72786daa48fdc9501f3daa4436c53d4f"
integrity sha512-DgThSr/2ayUA1mium4rJCjg4/GpPkDTO/yLz6uaTYPhCZ4hXkR+p47s0g64CqUwOv6F0KLk98uMWBKlVTXS9zQ==
dependencies:
fast-glob "^3.2.12"

vite-ssr@^0.17.1:
version "0.17.1"
resolved "https://registry.yarnpkg.com/vite-ssr/-/vite-ssr-0.17.1.tgz#b29cdd5ec45964a7ab45bae85ec7f54d23793a1d"
Expand Down

0 comments on commit ff65846

Please sign in to comment.