简体   繁体   English

如何重建select2

[英]How to rebuild select2

I've modified select2 sources ( core.js ) 我已经修改了select2源( core.js

What should I do to rebuild the files in dist directory : 我该怎么做才能重建dist目录中的文件:

  • select2.full.js
  • select2.js
  • etc 等等

Generally such common tasks always get built by a build task or in this case compile task (as answered in comments). 通常,此类常见任务总是由build任务或在这种情况下由compile任务build (如注释中所回答)。

Or simply doing gulp or grunt (in this case) will always run your default task, if defined which is a good practice to. 或者简单地做一下gulpgrunt (在这种情况下)将始终运行您的default任务(如果已定义),这是一个好习惯。

So you can do grunt compile or simply grunt (as answered in comments) most of the time. 因此,您大多数时候都可以进行grunt compile或仅进行grunt (如评论中的回答)。

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

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