dbgate/plugins/dbgate-plugin-sqlite/webpack-backend.config.js
2021-04-25 18:49:53 +02:00

24 lines
426 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,
// },
};
module.exports = config;