hubs-ops/arbortect/webpack.config.js

16 строки
401 B
JavaScript

const path = require('path');
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './bin/run',
target: 'node',
output: {
path: path.join(__dirname, 'dist'),
filename: 'arbortect'
},
// we can't bundle all the deps because they include binaries, e.g. pg-native,
// so we just ship the node_modules directory intact
externals: [nodeExternals()]
};