/
githubmirror
/
pdf.js
Обзор
Документация
Войти
/
githubmirror
/
pdf.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/webpack/webpack.config.js
18 строк
445 B
Jonas Jenwald
Update the `webpack` example to account for outputting of JavaScript modules (PR 17055 follow-up)
28 окт 2023, 11:26
28 окт 2023, 11:26
d7b39fe
Код
Авторство
О чём код?
/* eslint-disable import/no-commonjs */ const webpack = require("webpack"); // eslint-disable-line no-unused-vars const path = require("path"); module.exports = { context: __dirname, entry: { main: "./main.mjs", "pdf.worker": "pdfjs-dist/build/pdf.worker.mjs", }, mode: "none", output: { path: path.join(__dirname, "../../build/webpack"), publicPath: "../../build/webpack/", filename: "[name].bundle.js", }, };