signal-desktop/webpack-heic-worker.config.ts

24 lines
570 B
TypeScript
Raw Normal View History

2021-08-09 20:06:21 +00:00
// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { resolve } from 'path';
// eslint-disable-next-line import/no-extraneous-dependencies
import { Configuration } from 'webpack';
const context = __dirname;
const workerConfig: Configuration = {
context,
mode: 'development',
devtool: false,
2021-08-16 16:34:25 +00:00
entry: ['./ts/workers/heicConverterWorker.js'],
2021-08-09 20:06:21 +00:00
target: 'node',
output: {
path: resolve(context, 'ts', 'workers'),
filename: 'heicConverter.bundle.js',
publicPath: './',
},
};
export default [workerConfig];