Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-12 21:07:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-12 21:07:46 +0300
commit6121ad5af38294f12db08f13aec122c3dbef583a (patch)
tree452bdd3003f26ad4cffb9005b176bb052b810a14 /vite.config.js
parent86a3b1b3ae2115c6ab7b9d492e9c89ac70963d3a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js
index 88d264531a6..b70478abe96 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -128,5 +128,21 @@ export default defineConfig({
protocol: 'ws',
},
https: false,
+ watch: {
+ ignored: [
+ '**/*.stories.js',
+ function ignoreRootFolder(x) {
+ /*
+ `vite` watches the root folder of gitlab and all of its sub folders
+ This is not what we want, because we have temp files, and all kind
+ of other stuff. As vite starts its watchers recursively, we just
+ ignore if the path matches exactly the root folder
+
+ Additional folders like `ee/app/assets` are defined in
+ */
+ return x === __dirname;
+ },
+ ],
+ },
},
});