提交 b59d9a56 编写于 作者: M Mr.doob

Use --preamble in uglifyjs command. See #9547

上级 084174b5
......@@ -21,7 +21,7 @@
},
"scripts": {
"build": "rollup -c",
"build-min": "rollup -c && uglifyjs build/three.js -cm --comments /threejs.org\\\/license/ > build/three.min.js",
"build-min": "rollup -c && uglifyjs build/three.js -cm --preamble \"\/\/ threejs.org\/license\" > build/three.min.js",
"dev": "rollup -c -w",
"test": "echo \"Error: no test specified\" && exit 1"
},
......
......@@ -30,6 +30,5 @@ export default {
plugins: [
glsl()
],
banner: '// threejs.org/license \n',
outro: outro
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册