mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 07:36:01 +00:00
fixed mysql in bundled app
This commit is contained in:
@@ -10,23 +10,25 @@ var config = {
|
|||||||
target: 'node',
|
target: 'node',
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js',
|
||||||
},
|
},
|
||||||
// module: {
|
|
||||||
// rules: [
|
optimization: {
|
||||||
// {
|
minimize: false
|
||||||
// test: /\.js$/,
|
},
|
||||||
// exclude: /node_modules/
|
|
||||||
// },
|
// module: {
|
||||||
// ],
|
// rules: [
|
||||||
// },
|
// {
|
||||||
|
// test: /\.js$/,
|
||||||
|
// exclude: /node_modules/
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.IgnorePlugin({
|
new webpack.IgnorePlugin({
|
||||||
checkResource(resource) {
|
checkResource(resource) {
|
||||||
const lazyImports = [
|
const lazyImports = ['pg-native', 'uws'];
|
||||||
'pg-native',
|
|
||||||
'uws'
|
|
||||||
];
|
|
||||||
if (!lazyImports.includes(resource)) {
|
if (!lazyImports.includes(resource)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user