简体   繁体   English

将utils.js拆分为多个文件以进行国际电话输入

[英]Split utils.js into multiple files for intl-tel-input

I've been using this plugin for my crossrider extension. 我一直在使用我的跨界扩展插件 The problem is the utils script is about 200kb+ and there's a limitation in crossrider. 问题是utils脚本大约200kb以上,并且crossrider中有一个限制。

My question, is there a way to split the utils.js into seperate files? 我的问题是,有没有一种方法可以将utils.js拆分为单独的文件? I've checked the code but it was enclose in (function() {....}) so I can't just break them in half without messing something up. 我已经检查了代码,但是将其包含在(function() {....})因此我不能将它们分成两半而不弄乱某些内容。

Anyone tried to do this? 有人尝试这样做吗?

Thanks, 谢谢,

Kevin 凯文

Use the minified version of the library that is only 23Kb. 使用仅23Kb 的库缩小版本

[ Disclosure: I am a Crossrider employee] [ 披露:我是Crossrider员工]

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

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