diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-12 21:07:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-12 21:07:46 +0300 |
commit | 6121ad5af38294f12db08f13aec122c3dbef583a (patch) | |
tree | 452bdd3003f26ad4cffb9005b176bb052b810a14 /vite.config.js | |
parent | 86a3b1b3ae2115c6ab7b9d492e9c89ac70963d3a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'vite.config.js')
-rw-r--r-- | vite.config.js | 16 |
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; + }, + ], + }, }, }); |