generated from coulomb/repo-seed
Implements all requirements from ProductRequirementsDocument.md: - PDF detection via Chrome Downloads API - Secure credential storage with AES-GCM encryption - Binect API integration for PDF uploads - Popup UI with Binect branding - Local transfer tracking (500 entry cap) - Help page with tracking view and CSV export - 60-day credential retention with auto-expiry - Accessibility compliance (WCAG 2.1 AA) Technical implementation: - Chrome Extension Manifest V3 - TypeScript with strict mode - Webpack build system - Jest test suite (22/22 passing) - ESLint configured (0 errors) Build output: 13 KB total (production minified) Test coverage: crypto, pdf-detector, tracker, binect-api Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
const path = require('path');
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
background: './src/background/service-worker.ts',
|
|
popup: './src/popup/popup.ts',
|
|
tracking: './src/tracking/tracking.ts'
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
clean: true
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
use: ['style-loader', 'css-loader']
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js']
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: './src/popup/popup.html',
|
|
filename: 'popup.html',
|
|
chunks: ['popup']
|
|
}),
|
|
new HtmlWebpackPlugin({
|
|
template: './src/tracking/tracking.html',
|
|
filename: 'tracking.html',
|
|
chunks: ['tracking']
|
|
}),
|
|
new CopyPlugin({
|
|
patterns: [
|
|
{ from: 'public/manifest.json', to: 'manifest.json' },
|
|
{ from: 'public/icons', to: 'icons' },
|
|
{ from: 'public/_locales', to: '_locales' }
|
|
]
|
|
})
|
|
]
|
|
};
|