Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 527 Bytes

File metadata and controls

20 lines (16 loc) · 527 Bytes

Start without a configuration file, or provide a custom webpack.config.js:

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: {
    path: path.resolve(__dirname, "dist"),
    filename: "bundle.js",
  },
};

Prefer a video walkthrough instead? See the Without config guide.