mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Removing "entry-loader" dependency from webpack.
This commit is contained in:
parent
127e6d7343
commit
ae415f9e80
12 changed files with 45 additions and 17 deletions
|
@ -3,11 +3,14 @@ var path = require('path');
|
|||
|
||||
module.exports = {
|
||||
context: __dirname,
|
||||
entry: './main.js',
|
||||
entry: {
|
||||
'main': './main.js',
|
||||
'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry'
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, '../../build/webpack'),
|
||||
publicPath: '../../build/webpack/',
|
||||
filename: 'bundle.js'
|
||||
filename: '[name].bundle.js'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue