UNPKG

catchment-area

Version:

A utility for computing the catchment area of given source and destination points. A source may correspond to a health facility while the destinations (catchment areas) are the settlements served by the facility

30 lines (26 loc) 619 B
var path = require('path') var webpack = require('webpack') var webpackMerge = require('webpack-merge') var baseConfig = { target: 'async-node', entry: { entry: './src/index.js' }, output: { filename: '[name].js', path: path.resolve(__dirname, './dist'), library: 'catchment-area', libraryTarget: 'umd' } } let targets = ['web', 'node', 'async-node'].map((target) => { let base = webpackMerge(baseConfig, { target: target, output: { path: path.resolve(__dirname, './dist'), filename: '[name].' + target + '.js' } }) return base }) module.exports = targets