Compile advance模式运行出错:Uncaught ReferenceError: Class is not defined

cocos compile -p web -m release --advance 出错提示:Uncaught ReferenceError: Class is not defined 请教什么原因

请用sample模式, advance是高级混淆,用这个模式,你必须要很清楚的知道advance混淆,你源代码要注意事项,请参考Google Closure Compiler

你好,请问sample模式也是compile时的一种模式吗?不知如何使用?

是的,用sample 是简单些的压缩模式,

请问sample模式的编译命令是怎样使用的?是不是cocos compile -p web -m release --sample ??
我试了好像不行