const path = require("path");

module.exports = {
  entry: { main: "./src/client/assets/js" },
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "main.js"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader"
        }
      }
    ]
  }
};

const path = require("path");

module.exports = {
  entry: { main: "./src/client/assets/js" },
  output: {
    path: __dirname + "/build",
    filename: "application.js",
    publicPath: "/"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader"
        }
      }
    ]
  }
};

correct output dir