module.exports = {
mode: dev ? "development" : "production",
context: path.join( __dirname, "" ),
devtool: dev ? "none" : "source-map",
entry: {
//babel-polyfill
app: [ "babel-polyfill", "./src/client.js" ],
},
resolve: {
modules: [
path.resolve( "./src" ),
"node_modules",
],
},
output: {
path: path.resolve( __dirname, "dist" ),
filename: "[name].bundle.js",
},
plugins,
};