gpt4 book ai didi

javascript - 语义 UI - `gulp build` 返回 JS 错误

转载 作者:行者123 更新时间:2023-12-01 05:19:53 24 4
gpt4 key购买 nike

我安装了最新版本的 Semantic-UI,但是当使用 gulp build 构建资源时,编译 JS 返回以下错误,而 CSS 编译得很好。

Building assets
[10:48:00] Created: dist/components/site.js
[10:48:00] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/site.js
[10:48:00] Created: dist/components/form.js
[10:48:00] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/form.js
[10:48:00] Created: dist/components/accordion.js
[10:48:00] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/accordion.js
[10:48:00] Created: dist/components/checkbox.js
[10:48:00] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/checkbox.js
[10:48:00] Created: dist/components/dimmer.js
[10:48:00] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/dimmer.js

我之前在使用 Semantic UI 的项目中从未遇到过这个问题,所以我不确定是什么原因造成的。有人可以建议修复吗?

最佳答案

此错误正在修复。请参阅此处:

https://github.com/Semantic-Org/Semantic-UI/issues/5391

关于javascript - 语义 UI - `gulp build` 返回 JS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45364084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com