mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
27 lines
546 B
JavaScript
27 lines
546 B
JavaScript
const path = require('path');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
module.exports = {
|
|
entry: { index: './src/cli.js' },
|
|
target: 'node',
|
|
devtool: 'source-map',
|
|
output: {
|
|
path: path.resolve(__dirname, '..', 'dist'),
|
|
filename: '[name].js',
|
|
library: 'insomniacli',
|
|
libraryTarget: 'commonjs2',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: [/node_modules/],
|
|
use: {
|
|
loader: 'babel-loader',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
externals: [nodeExternals()],
|
|
};
|