From c79cdc847f2f4462a6b23e2daa74a1f27fb4c04c Mon Sep 17 00:00:00 2001 From: Darran Boyd Date: Tue, 13 Feb 2024 15:46:29 +1100 Subject: [PATCH] chore(Browser extension): Remove remote scripts --- .../wxt.config.ts | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/packages/threat-composer-app-browser-extension/wxt.config.ts b/packages/threat-composer-app-browser-extension/wxt.config.ts index 197a7b89..2efc84c6 100644 --- a/packages/threat-composer-app-browser-extension/wxt.config.ts +++ b/packages/threat-composer-app-browser-extension/wxt.config.ts @@ -52,19 +52,30 @@ export default defineConfig({ plugins: [ react(), copy({ - targets: [{ - src: '../threat-composer-app/build/browser-extension/index.html', - dest: env.browser === 'chrome' ? ['./.output/chrome-mv3'] : ['./.output/firefox-mv2'], - transform: (contents) => contents.toString().replace('<\/body><\/html>', '