mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
34 lines
758 B
JavaScript
34 lines
758 B
JavaScript
var webpack = require('webpack');
|
|
var path = require('path');
|
|
|
|
var config = {
|
|
context: __dirname + '/src/backend',
|
|
|
|
entry: {
|
|
app: './index.js',
|
|
},
|
|
target: 'node',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'backend.js',
|
|
libraryTarget: 'commonjs2',
|
|
},
|
|
|
|
// uncomment for disable minimalization
|
|
// optimization: {
|
|
// minimize: false,
|
|
// },
|
|
|
|
externals: {
|
|
'dbgate-tools': 'commonjs dbgate-tools',
|
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
|
lodash: 'commonjs lodash',
|
|
mongodb: 'commonjs mongodb',
|
|
'mongodb-client-encryption': 'commonjs mongodb-client-encryption',
|
|
bson: 'commonjs bson',
|
|
'is-promise': 'commonjs is-promise',
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|