From 8236a18433488cb0367167f47456f74df6090315 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 12 Apr 2026 10:58:15 -0400 Subject: [PATCH] feat: add setup wizard to webpack build and manifest Co-Authored-By: Claude Opus 4.6 (1M context) --- extension/manifest.json | 6 +++++- extension/webpack.config.js | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/extension/manifest.json b/extension/manifest.json index deafd15..4530664 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -24,5 +24,9 @@ }], "content_security_policy": { "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" - } + }, + "web_accessible_resources": [{ + "resources": ["setup.html", "setup.js", "styles.css", "idfoto_wasm_bg.wasm", "idfoto_wasm.js"], + "matches": [""] + }] } diff --git a/extension/webpack.config.js b/extension/webpack.config.js index 9fefa24..715e5d0 100644 --- a/extension/webpack.config.js +++ b/extension/webpack.config.js @@ -6,6 +6,7 @@ module.exports = { 'service-worker': './src/service-worker/index.ts', popup: './src/popup/popup.ts', content: './src/content/detector.ts', + setup: './src/setup/setup.ts', }, output: { path: path.resolve(__dirname, 'dist'), @@ -24,6 +25,7 @@ module.exports = { { from: 'manifest.json', to: '.' }, { from: 'src/popup/index.html', to: 'popup.html' }, { from: 'src/popup/styles.css', to: 'styles.css' }, + { from: 'setup.html', to: '.' }, { from: 'icons', to: 'icons' }, { from: 'wasm/idfoto_wasm_bg.wasm', to: '.' }, { from: 'wasm/idfoto_wasm.js', to: '.' },