From 1761dd1cfce7f539faa4caa50447bc9b78437edf Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 1 Nov 2024 10:33:09 -0400 Subject: [PATCH] Exclude unneeded files from build output --- webpack.common.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 16fdab0ae04..058b4f3c1e9 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -73,8 +73,7 @@ const config = { new CopyPlugin({ patterns: [ { - from: 'themes/', - to: 'themes/' + from: 'themes/**/*.css' }, { from: 'assets/**', @@ -87,7 +86,13 @@ const config = { from: '*.*', globOptions: { dot: true, - ignore: ['**.js', '**.html'] + ignore: [ + '**.js', + '**.jsx', + '**.html', + '**.ts', + '**.tsx' + ] } } ]