在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ifandelse/gulp-imports开源软件地址(OpenSource Url):https://github.com/ifandelse/gulp-imports开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):#Gulp-Imports 0.0.3 A gulp plugin to make file imports/includes easy.
##The Basic Idea I loved Anvil.js - it's by far the best CoC approach to JavaScript/web asset builds that I've ever seen. I want the same "import" syntax for projects of mine using Gulp, that I had with Anvil.js. For example, consider the following files: ###file1.js
###subdir1/file2.js
###subdir1/subdir1a/file3.js
###subdir2/file4.js
Each of the above files is using an Running a gulpfile like this:
would result in the following combined output:
Yay for combining files via includes that don't make your IDE barf. ##Disclaimers I'm sure there's a better way to do this - so if you know of one, tell me, or submit a PR :-) In the meantime, I'll be trying to think of how to improve this to the point where I can bring myself to encourage others to use it. ##License It's MIT. Have fun. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论