webpack.config.js 199 B

123456789
  1. const path = require("path"); // NodeJS builtin.
  2. module.exports = {
  3. entry: "./src/",
  4. output: {
  5. filename: "bundle.js",
  6. path: path.join(__dirname, "dist") // path must be absolute.
  7. }
  8. };