pdf.js/examples/webpack/webpack.config.js

17 lines
403 B
JavaScript
Raw Normal View History

2018-12-06 22:02:39 +09:00
var webpack = require('webpack'); // eslint-disable-line no-unused-vars
var path = require('path');
module.exports = {
context: __dirname,
entry: {
'main': './main.js',
2018-12-06 21:55:15 +09:00
'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry',
},
2018-05-20 22:18:43 +09:00
mode: 'none',
output: {
path: path.join(__dirname, '../../build/webpack'),
publicPath: '../../build/webpack/',
2018-12-06 21:55:15 +09:00
filename: '[name].bundle.js',
},
};