Skip to content

Commit 9c99490

Browse files
committed
Don't use minified three for now
Minified version screws up the `var ctorName = obj.constructor.name + 'Model';` line in _base/Three.js, due to the constructor name being minified.
1 parent aef7c87 commit 9c99490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/scripts/copy-files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const docStaticDir = path.resolve(baseDir, '..', 'docs', 'source', '_static');
1515

1616
function copyThree() {
1717
return fse.copy(
18-
path.resolve(threeBuildDir, 'three.min.js'),
18+
path.resolve(threeBuildDir, 'three.js'),
1919
path.resolve(staticDir, 'three.js')
2020
).then(function() {
2121
console.log('Copied three.js to static folder');
@@ -33,7 +33,7 @@ function copyBundleToDocs() {
3333

3434
function copyThreeToDocs() {
3535
return fse.copy(
36-
path.resolve(threeBuildDir, 'three.min.js'),
36+
path.resolve(threeBuildDir, 'three.js'),
3737
path.resolve(docStaticDir, 'three.js')
3838
).then(function() {
3939
console.log('Copied three.js to docs folder');

0 commit comments

Comments
 (0)