Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行hb dest报错 #7

Open
hehuangz opened this issue Jun 12, 2019 · 0 comments
Open

执行hb dest报错 #7

hehuangz opened this issue Jun 12, 2019 · 0 comments

Comments

@hehuangz
Copy link

报错如下:

internal/streams/legacy.js:57
      throw er; // Unhandled stream error in pipe.
      ^
GulpUglifyError: unable to minify JavaScript
    at createError (/usr/local/lib/node_modules/html-bundler/node_modules/gulp-uglify/lib/create-error.js:6:14)
    at wrapper (/usr/local/lib/node_modules/html-bundler/node_modules/lodash/_createHybrid.js:87:15)
    at trycatch (/usr/local/lib/node_modules/html-bundler/node_modules/gulp-uglify/minifier.js:26:12)
    at DestroyableTransform.minify [as _transform] (/usr/local/lib/node_modules/html-bundler/node_modules/gulp-uglify/minifier.js:79:19)
    at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/html-bundler/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/html-bundler/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/usr/local/lib/node_modules/html-bundler/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/usr/local/lib/node_modules/html-bundler/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/html-bundler/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Stream.ondata (internal/streams/legacy.js:15:31)

报错原因是html-bundler对某些js语法不支持吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant