mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
bundling refactor
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
var webpack = require('webpack');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
const buildPluginExternals = require('../../common/buildPluginExternals');
|
||||
const externals = buildPluginExternals(packageJson);
|
||||
|
||||
var config = {
|
||||
context: __dirname + '/src/backend',
|
||||
|
||||
@@ -36,13 +40,7 @@ var config = {
|
||||
}),
|
||||
],
|
||||
|
||||
externals: {
|
||||
'dbgate-tools': 'commonjs dbgate-tools',
|
||||
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||
lodash: 'commonjs lodash',
|
||||
pg: 'commonjs pg',
|
||||
'pg-copy-streams': 'commonjs pg-copy-streams',
|
||||
}
|
||||
externals,
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
|
||||
Reference in New Issue
Block a user