简体   繁体   English

使用core-js自定义构建

[英]Custom build with core-js

I'm trying to create a custom build with core-js. 我正在尝试使用core-js创建自定义版本。 Per the documentation, I first ran 根据文档,我首先运行

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

which seemed to be fine. 这似乎很好。 Then, also per the docs I tried 然后,根据我尝试过的文档

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

and lots of variations on that theme. 在该主题上有很多变化。 It seems to run briefly, with no output at all, and I can't seem to find any generated file. 它似乎运行很短,根本没有任何输出,而且我似乎找不到任何生成的文件。 What am I doing wrong? 我究竟做错了什么?

Also, the above commands were run on the Windows 8.1 cmd terminal. 另外,以上命令在Windows 8.1 cmd终端上运行。

What's particularly interesting (and frustrating) is that running this 特别有趣(令人沮丧)的是运行

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

Similarly runs briefly and then seems to succeed. 类似地运行短暂,然后似乎成功。

I'm not sure what my root problem is, but for me, running the grant task on its own, without npm run did the trick 我不确定我的根本问题是什么,但是对我来说,独立运行授予任务,而无需运行npm可以解决问题

So something like this should be the final product. 因此,类似的东西应该是最终产品。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM