Sfoglia il codice sorgente

Merge branch 'patch-8' of https://github.com/gero3/three.js into dev

Mr.doob 11 anni fa
parent
commit
5b233e985b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      utils/build/build.js
  2. 1 1
      utils/build/build.py

+ 1 - 1
utils/build/build.js

@@ -68,7 +68,7 @@ function main() {
 
 		var result = uglify.minify( sources, { outSourceMap: sourcemap } );
 		
-		fs.writeFileSync( output, result.code + sourcemapping, 'utf8' );
+		fs.writeFileSync( output, 'three.js - http://github.com/mrdoob/three.js\n// Released under the MIT license.\n// https://github.com/mrdoob/three.js/blob/master/LICENSE\n' + result.code + sourcemapping, 'utf8' );
 
 		if ( args.sourcemaps ) {
 

+ 1 - 1
utils/build/build.py

@@ -79,7 +79,7 @@ def main(argv=None):
 		# header
 
 		with open(output,'r') as f: text = f.read()
-		with open(output,'w') as f: f.write('// three.js - http://github.com/mrdoob/three.js\n' + text + sourcemapping)
+		with open(output,'w') as f: f.write('// three.js - http://github.com/mrdoob/three.js\n// Released under the MIT license.\n// https://github.com/mrdoob/three.js/blob/master/LICENSE\n' + text + sourcemapping)
 
 	os.close(fd)
 	os.remove(path)