feat: add setup wizard to webpack build and manifest

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken
2026-04-12 10:58:15 -04:00
parent 9a53b264f2
commit 8236a18433
2 changed files with 7 additions and 1 deletions

View File

@@ -24,5 +24,9 @@
}], }],
"content_security_policy": { "content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" "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": ["<all_urls>"]
}]
} }

View File

@@ -6,6 +6,7 @@ module.exports = {
'service-worker': './src/service-worker/index.ts', 'service-worker': './src/service-worker/index.ts',
popup: './src/popup/popup.ts', popup: './src/popup/popup.ts',
content: './src/content/detector.ts', content: './src/content/detector.ts',
setup: './src/setup/setup.ts',
}, },
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
@@ -24,6 +25,7 @@ module.exports = {
{ from: 'manifest.json', to: '.' }, { from: 'manifest.json', to: '.' },
{ from: 'src/popup/index.html', to: 'popup.html' }, { from: 'src/popup/index.html', to: 'popup.html' },
{ from: 'src/popup/styles.css', to: 'styles.css' }, { from: 'src/popup/styles.css', to: 'styles.css' },
{ from: 'setup.html', to: '.' },
{ from: 'icons', to: 'icons' }, { from: 'icons', to: 'icons' },
{ from: 'wasm/idfoto_wasm_bg.wasm', to: '.' }, { from: 'wasm/idfoto_wasm_bg.wasm', to: '.' },
{ from: 'wasm/idfoto_wasm.js', to: '.' }, { from: 'wasm/idfoto_wasm.js', to: '.' },