axios-rest-api
Version:
Simple Axios wrapper for simple REST Api requests
36 lines (33 loc) • 665 B
JavaScript
const path = require('path');
module.exports = {
output: {
libraryTarget: 'umd',
},
externals: {
axios: 'axios',
underscore: 'underscore',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: ['babel-loader', 'eslint-loader'],
},
// {
// test: /\.js$/,
// exclude: /node_modules/,
// loader: 'babel-loader',
// options: {
// presets: ['@babel/env'],
// },
// },
],
},
// output: {
// library: 'Censoring',
// globalObject: 'this',
// filename: "Censoring.js",
// libraryTarget: "umd"
// },
};