const path = require("path"); module.exports = { entry: "./src/index.js", output: { path: path.join(__dirname, "../assets/js"), filename: "index.js", clean: true, }, devtool: "source-map", module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: "babel-loader", }, }, { test: /\.css$/i, use: ["style-loader", "css-loader"], }, ], } };