var path = require('path'); module.exports = { entry: { main: [path.join(__dirname, 'src', 'main.js')], Tessellate: [path.join(__dirname, 'src', 'tessellate.js')], }, output: { libraryTarget: 'this', path: path.join(__dirname, 'public', 'js'), filename: '[name].js' }, devtool: 'inline-source-map', module: { rules: [ { test: path.join(__dirname, 'src'), use: { loader: 'babel-loader' } } ] } };