gpt4 book ai didi

javascript - 使用 core-js 自定义构建

转载 作者:行者123 更新时间:2023-11-28 07:02:29 25 4
gpt4 key购买 nike

我正在尝试使用 core-js 创建自定义构建。根据文档,我首先运行

npm i core-js && cd node_modules/core-js && npm i

看起来不错。然后,也按照我尝试过的文档

C:\GIT\coreJS_Custom\node_modules\core-js>npm run grunt build:es6.array.from -- --library=on --path=custom uglify

以及该主题的许多变体。它似乎运行短暂,根本没有输出,而且我似乎找不到任何生成的文件。我做错了什么?

此外,上述命令是在 Windows 8.1 cmd 终端上运行的。

特别有趣(并且令人沮丧)的是运行这个

C:\GIT\coreJS_Custom\node_modules\core-js>npm run grunt kjhgjhghkghh

同样运行短暂,然后似乎成功了。

最佳答案

我不确定我的根本问题是什么,但对我来说,在没有 npm run 的情况下自行运行授予任务就可以了

所以最终产品应该是这样的。

C:\GIT\coreJS_Custom\node_modules\core-js>grunt build:es6.array.from --library=on --path="es6-array-from-build-min2" uglify

关于javascript - 使用 core-js 自定义构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32000821/

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