diff options
author | bobzel <zzzman@gmail.com> | 2025-08-14 11:00:14 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-08-14 11:00:14 -0400 |
commit | 467f1c2543626a50d48c84669cd408571260f147 (patch) | |
tree | 2cb3599c4ca95fe2b975deb8dc72283151e1c585 /webpack.worker.config.js | |
parent | 5b0b7241e68febc2d0556b6c2e8349411b5c12a0 (diff) |
added background removal for images.
Diffstat (limited to 'webpack.worker.config.js')
-rw-r--r-- | webpack.worker.config.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/webpack.worker.config.js b/webpack.worker.config.js new file mode 100644 index 000000000..f2a2da199 --- /dev/null +++ b/webpack.worker.config.js @@ -0,0 +1,30 @@ +// webpack.worker.config.js +// eslint-disable-next-line @typescript-eslint/no-require-imports +const path = require('path'); + +module.exports = { + mode: 'development', + entry: './src/workers/image.worker.ts', // 👈 Adjust path to your worker file + output: { + filename: 'image.worker.js', + publicPath: '/', + path: path.resolve(__dirname, 'build'), + }, + experiments: { + outputModule: true, + }, + resolve: { + extensions: ['.ts', '.js'], + }, + module: { + rules: [ + { + test: /\.ts$/, + loader: 'ts-loader', + options: { + configFile: 'tsconfig.worker.json', + }, + }, + ], + }, +}; |