made laslaz optional
This commit is contained in:
parent
05aa19c752
commit
02319982e4
2
build/js/laslaz.js
Normal file
2
build/js/laslaz.js
Normal file
File diff suppressed because one or more lines are too long
1
build/js/laslaz.min.js
vendored
Normal file
1
build/js/laslaz.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
build/js/potree.min.js
vendored
5
build/js/potree.min.js
vendored
File diff suppressed because one or more lines are too long
16
gulpfile.js
16
gulpfile.js
@ -16,8 +16,6 @@ var paths = {
|
||||
potree : [
|
||||
"src/Potree.js",
|
||||
"src/WorkerManager.js",
|
||||
"build/workers/laslaz-worker.js",
|
||||
"build/workers/lasdecoder-worker.js",
|
||||
"src/extensions/PerspectiveCamera.js",
|
||||
"src/extensions/Ray.js",
|
||||
"src/loader/POCLoader.js",
|
||||
@ -36,8 +34,11 @@ var paths = {
|
||||
"src/utils/MeasuringTool.js",
|
||||
"src/utils/ProfileTool.js",
|
||||
"src/utils/TranslationTool.js"
|
||||
],
|
||||
laslaz: [
|
||||
"build/workers/laslaz-worker.js",
|
||||
"build/workers/lasdecoder-worker.js",
|
||||
]
|
||||
|
||||
};
|
||||
|
||||
var workers = {
|
||||
@ -73,6 +74,15 @@ gulp.task("scripts", function(){
|
||||
.pipe(uglify({preserveComments: 'some'}))
|
||||
.pipe(size({showFiles: true}))
|
||||
.pipe(gulp.dest('build/js'));
|
||||
|
||||
gulp.src(paths.laslaz)
|
||||
.pipe(concat('laslaz.js'))
|
||||
.pipe(size({showFiles: true}))
|
||||
.pipe(gulp.dest('build/js'))
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(uglify({preserveComments: 'some'}))
|
||||
.pipe(size({showFiles: true}))
|
||||
.pipe(gulp.dest('build/js'));
|
||||
|
||||
return;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user