mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 10:16:00 +00:00
30 lines
546 B
JavaScript
30 lines
546 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: {
|
|
csv: 'commonjs csv',
|
|
'line-reader': 'commonjs line-reader',
|
|
lodash: 'commonjs lodash',
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|