const commonConfig = require("./webpack.common.config");
const nodeExternals = require("webpack-node-externals");
const merge = (...objs) => require("deepmerge").all(objs, {arrayMerge: (arr1, arr2) => arr1.concat(arr2) });

const combinedConfig = merge({}, commonConfig, {
	output: {
		path: "./dist",
		libraryTarget: "var",
		filename: "bundle.js"
	},
	devtool: "#source-map",
});

module.exports = combinedConfig;

const path = require("path");
const commonConfig = require("./webpack.common.config");
const nodeExternals = require("webpack-node-externals");
const merge = (...objs) => require("deepmerge").all(objs, {arrayMerge: (arr1, arr2) => arr1.concat(arr2) });

const combinedConfig = merge({}, commonConfig, {
	output: {
		path: path.resolve(__dirname, "./dist"),
		libraryTarget: "var",
		filename: "bundle.js"
	},
	devtool: "#source-map",
});

module.exports = combinedConfig;

Fix absolute path requirement for output.path since webpack 2.3.0
Fix absolute path requirement for output.path since webpack 2.3.0
