Ai
1 Star 0 Fork 0

github_syn/vscode-database-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.lib.js 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
cweijan 提交于 2021-01-23 04:06 +08:00 . Integrate g2.
const path = require('path');
var webpack = require('webpack');
// 1. npm i tedious mysql2 node-xlsx tunnelSsh g2
// 2. npm run lib
module.exports = [
{
target: "node",
node: {
fs: 'empty', net: 'empty', tls: 'empty',
child_process: 'empty', dns: 'empty',
global: true, __dirname: true
},
entry: {
tedious: './node_modules/tedious/lib/tedious.js',
mysql2: './node_modules/mysql2/index.js',
'node-xlsx': './node_modules/node-xlsx/lib/index.js',
'tunnel-ssh': './node_modules/tunnel-ssh/index.js',
'g2': './node_modules/@antv/g2/lib/index.js',
} ,
output: {
path: path.resolve(__dirname, 'src/bin'),
filename: '[name].js',
libraryTarget: 'commonjs2'
},
externals: {
vscode: 'commonjs vscode'
},
resolve: {
extensions: ['.ts', '.js'],
alias: {
'@': path.resolve(__dirname, './src'),
'~': path.resolve(__dirname, './src')
}
},
plugins: [
new webpack.IgnorePlugin(/^(pg-native|supports-color)$/)
],
module: { rules: [{ test: /\.ts$/, exclude: /node_modules/, use: ['ts-loader'] }] },
optimization: { minimize: true },
watch: false,
mode: 'production',
devtool: false,
}
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/github_syn/vscode-database-client.git
git@gitee.com:github_syn/vscode-database-client.git
github_syn
vscode-database-client
vscode-database-client
master

搜索帮助