dbgate/plugins/dbgate-plugin-mysql/webpack-backend.config.js

24 lines
420 B
JavaScript
Raw Normal View History

2021-04-13 14:17:53 +00:00
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,
// },
};
module.exports = config;