Back to Webpack Js Org

Left

src/components/Splash/second/left.mdx

4.41.2480 B
Original Source

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

js
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default {
  entry: "./src/index.js",
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "bundle.js",
  },
};

Prefer a video walkthrough? Without config