mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
31 lines
641 B
JavaScript
31 lines
641 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',
|
|
},
|
|
|
|
externals: {
|
|
'dbgate-tools': 'commonjs dbgate-tools',
|
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
|
'antares-mysql-dumper': 'commonjs antares-mysql-dumper',
|
|
mysql2: 'commonjs mysql2',
|
|
},
|
|
|
|
// uncomment for disable minimalization
|
|
// optimization: {
|
|
// minimize: false,
|
|
// },
|
|
};
|
|
|
|
module.exports = config;
|