Skip to content

Commit b59d9a5

Browse files
committed
Use --preamble in uglifyjs command. See mrdoob#9547
1 parent 084174b commit b59d9a5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"build": "rollup -c",
24-
"build-min": "rollup -c && uglifyjs build/three.js -cm --comments /threejs.org\\\/license/ > build/three.min.js",
24+
"build-min": "rollup -c && uglifyjs build/three.js -cm --preamble \"\/\/ threejs.org\/license\" > build/three.min.js",
2525
"dev": "rollup -c -w",
2626
"test": "echo \"Error: no test specified\" && exit 1"
2727
},

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ export default {
3030
plugins: [
3131
glsl()
3232
],
33-
banner: '// threejs.org/license \n',
3433
outro: outro
3534
};

0 commit comments

Comments
 (0)