mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +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
8
make.js
8
make.js
|
@ -308,6 +308,7 @@ target.dist = function() {
|
|||
GENERIC_DIR + 'build/pdf.js',
|
||||
GENERIC_DIR + 'build/pdf.worker.js',
|
||||
SINGLE_FILE_DIR + 'build/pdf.combined.js',
|
||||
SRC_DIR + 'pdf.worker.entry.js',
|
||||
], DIST_DIR + 'build/');
|
||||
|
||||
mkdir('-p', DIST_DIR + 'web/');
|
||||
|
@ -333,9 +334,10 @@ target.dist = function() {
|
|||
homepage: DIST_HOMEPAGE,
|
||||
bugs: DIST_BUGS_URL,
|
||||
license: DIST_LICENSE,
|
||||
browser: { // used by browserify and ignores following files during bundle
|
||||
'entry?name=[hash]-worker.js!./pdf.worker.js': false,
|
||||
'./build/pdf.worker.js': false,
|
||||
dependencies: {
|
||||
'node-ensure': '^0.0.0' // shim for node for require.ensure
|
||||
},
|
||||
browser: {
|
||||
'node-ensure': false
|
||||
},
|
||||
format: 'amd', // to not allow system.js to choose 'cjs'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue