UNPKG

socketpuppet

Version:

🎭 socketpuppet - connect to running puppeteer instances to see what's going on (or going wrong)--and fix it, live!

26 lines (24 loc) • 473 B
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: "./src/server.js", output: { path: path.resolve(__dirname, '..', 'dist'), filename: "socketpuppet.js" }, target: "node", node: { __dirname: false }, plugins: [ new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true }), ], module: { rules: [ { test: /\.node$/, loader: 'node-loader', }, ], }, };