cocoscreator2.4.0预览没问题发布后报错

脚本放在resources文件下,预览的时候没问题,发布后提示:Uncaught Error: Cannot find module
请问下,脚本不能放在resources文件下面吗?