const path = require('path')
var config = {
// TODO: Add common Configuration
module: {},
};
var homeConfig = Object.assign({}, config, {
name: "home",
entry: ['@babel/polyfill','./home/static/home/esnext/main.js'],
output: {
path: path.resolve(__dirname, 'home/static/home/js'),
filename: "bundle.js"
},
devtool: 'source-map',
mode: 'development',
});
var shipmentConfig = Object.assign({}, config, {
name: "shipment",
entry: ['@babel/polyfill','./shipment/static/shipment/esnext/main.js'],
output: {
path: path.resolve(__dirname, 'shipment/static/shipment/js'),
filename: "bundle.js"
},
devtool: 'source-map',
mode: 'development',
});
// Return Array of Configurations
module.exports = [
homeConfig, shipmentConfig,
];