Files
learning-webpack/webpack-demo/webpack.config.js
2026-02-07 11:59:13 -06:00

15 lines
324 B
JavaScript

import path from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default {
mode: "development",
entry: "./src/index.js",
output: {
filename: "main.js",
path: path.resolve(__dirname, "dist"),
},
};