mono/packages/media/webpack.config.js
2025-08-13 18:12:54 +02:00

31 lines
628 B
JavaScript

import path from 'path';
import { fileURLToPath } from 'url';
import webpack from 'webpack';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
export default {
devtool: false,
plugins: [
new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true })
],
entry: './dist-in/main.js',
target: 'node',
mode: 'production',
module: {
rules: []
},
optimization: {
minimize: false
},
resolve: {
extensions: ['.js', '.ts']
},
output: {
filename: 'main_node.js',
path: path.resolve(__dirname, 'dist')
},
externals: {
'sharp': 'commonjs sharp'
}
};