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