Fix singlefile build target
This commit is contained in:
parent
1de3fae840
commit
04e2235ce7
7
make.js
7
make.js
@ -317,6 +317,10 @@ target.bundle = function(args) {
|
||||
// We want shared_src_files in both pdf.js and pdf.worker.js
|
||||
// unless it's being built in singlefile mode.
|
||||
WORKER_SRC_FILES = SHARED_SRC_FILES.concat(WORKER_SRC_FILES);
|
||||
} else {
|
||||
// In singlefile mode, all of the src files will be bundled into
|
||||
// the main pdf.js outuput.
|
||||
MAIN_SRC_FILES = MAIN_SRC_FILES.concat(WORKER_SRC_FILES);
|
||||
}
|
||||
|
||||
var EXT_SRC_FILES = [
|
||||
@ -367,9 +371,8 @@ target.singlefile = function() {
|
||||
cd(SINGLE_FILE_DIR);
|
||||
|
||||
echo();
|
||||
echo('### Concatenating pdf.js and pdf.worker.js into pdf.combined.js');
|
||||
echo('### Moving pdf.js to pdf.combined.js');
|
||||
var pdfJs = cat(BUILD_TARGET);
|
||||
pdfJs += cat(BUILD_WORKER_TARGET);
|
||||
pdfJs.to(SINGLE_FILE_TARGET);
|
||||
|
||||
rm(BUILD_TARGET);
|
||||
|
Loading…
Reference in New Issue
Block a user