const path = require('path'); const webpack = require('webpack'); module.exports = { target: "web", entry: { app: ["./js/index.js"] }, watch: true, output:{ path: path.resolve(__dirname, "public/dist"), filename: "index.js", }, mode: "production" }