insomnia/packages/openapi-2-kong/webpack.config.js
2020-04-26 13:33:39 -07:00

26 lines
474 B
JavaScript

const path = require('path');
module.exports = {
entry: { index: './src/index.js' },
target: 'node',
mode: 'production',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: 'openapi2kong',
libraryTarget: 'commonjs2',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
};