From a70299555b96cad717c419b19d2cce74b87c53e7 Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Fri, 11 Oct 2024 13:53:40 -0700 Subject: [PATCH] Remove tests from build artifacts Signed-off-by: Phillip Rak --- shell/vue.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/vue.config.js b/shell/vue.config.js index a17c704312..f6b1586b6c 100644 --- a/shell/vue.config.js +++ b/shell/vue.config.js @@ -551,6 +551,8 @@ module.exports = function(dir, _appConfig) { // The static assets need to be in the built assets directory in order to get served (primarily the favicon) config.plugins.push(new CopyWebpackPlugin({ patterns: [{ from: path.join(SHELL_ABS, 'static'), to: '.' }] })); + config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /\/__tests__\// })); + config.resolve.extensions.push(...['.tsx', '.ts', '.js', '.vue', '.scss']); config.watchOptions = { ...(config.watchOptions || {}),