ohroy / hexo-neat

auto Minify html、js、css and make it neat
74 stars 11 forks source link

ERROR Asset render failed: lib/three/gulpfile.js #9

Closed MoshiCoCo closed 3 years ago

MoshiCoCo commented 6 years ago
ERROR Asset render failed: lib/three/gulpfile.js
Error
    at new JS_Parse_Error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1534:18)
    at js_error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1542:11)
    at croak (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2089:9)
    at token_error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2097:9)
    at unexpected (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2103:9)
    at expr_atom (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2618:13)

不知道是不是之前装过 GULP压缩的问题,另外页面中的动态背景也失效凉了

MoshiCoCo commented 6 years ago

已经解决了 因为之前安装过gulp,然后在package.json中移除了,但是theme/next/source/three/中有之前使用gulp压缩静态文件生成的gulpfile.js文件,使用hexo g进行渲染的时候,这个js文件无法被渲染,所以报错。

ListenV commented 5 years ago

我也遇到同样问题,不过按照楼上的方法也解决了

yumdeer commented 5 years ago

我也遇到同样问题,不过按照楼上的方法也解决了

知道了问题不知道怎么解决😂,老哥请问下具体操作是什么?

MoshiCoCo commented 5 years ago

我也遇到同样问题,不过按照楼上的方法也解决了

知道了问题不知道怎么解决😂,老哥请问下具体操作是什么?

移除theme/next/source/three/中之前使用gulp压缩静态文件生成的’gulpfile.js’文件

也可能是其他文件,按照报错无法渲染的文件移除就可以。