webpack.config.js 405 B

12345678910111213141516
  1. const webpack = require("webpack"); // eslint-disable-line no-unused-vars
  2. const path = require("path");
  3. module.exports = {
  4. context: __dirname,
  5. entry: {
  6. main: "./main.js",
  7. "pdf.worker": "pdfjs-dist/build/pdf.worker.entry",
  8. },
  9. mode: "none",
  10. output: {
  11. path: path.join(__dirname, "../../build/webpack"),
  12. publicPath: "../../build/webpack/",
  13. filename: "[name].bundle.js",
  14. },
  15. };