const path = require("path") //__dirname, module.exports = { // entry: "./App.js", entry: { kpdl: "./app/Views/kewilayahan/kytp/kpdl.js" }, output: { path: path.resolve("./app/Views/kewilayahan/dist"), filename: "[name].js" }, optimization: { minimize: false }, module: { rules: [ { exclude: /node_modules/, use: { loader: "babel-loader", options: { presets: ["@babel/preset-react"], plugins: ["@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-nullish-coalescing-operator"] } } }, { test: /\.css$/i, // type: "asset" use: ["style-loader", "css-loader"] } ] }, mode: "production" }