From f21735463fc60441a31c747c456367bd900d724f Mon Sep 17 00:00:00 2001 From: Forrest Date: Tue, 6 Aug 2024 10:18:30 -0400 Subject: [PATCH] fix: produce an inline + regular bundle --- .github/workflows/publish.yml | 3 ++- build/webpack.base.config.js | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ac7615d1..3e0dc2a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,8 +23,9 @@ jobs: run: npm run validate - name: Write version run: npm run version + # build the inline version before release version - name: Build - run: npm run build:release + run: npm run build:inline && npm run build:release - name: Set git config run: | diff --git a/build/webpack.base.config.js b/build/webpack.base.config.js index cdd76e53..8dad89db 100644 --- a/build/webpack.base.config.js +++ b/build/webpack.base.config.js @@ -107,7 +107,12 @@ module.exports = { }, plugins: [ new CleanWebpackPlugin({ - cleanOnceBeforeBuildPatterns: ['**/*', '!version.js'], + cleanOnceBeforeBuildPatterns: [ + '**/*', + '!version.js', + '!ParaViewGlance.html', + '!glance-external-*', + ], }), new VueLoaderPlugin(), new VuetifyLoaderPlugin(),