简体   繁体   English

缩小Visual Studio嵌套文件夹结构中的所有JS文件

[英]Minify all JS files in nested folder structure of Visual Studio

I am looking for a solution to minify all the JS files (in a deep nested folder structure) in one go by either using visual studio extension or may be through command line. 我正在寻找一种解决方案,以使用Visual Studio扩展或通过命令行一次性缩小所有JS文件(在深层嵌套的文件夹结构中)。

Thoughts? 思考?

Thanks! 谢谢!

you should use glob patterns, suppose you have 您应该使用全局模式,假设您有

outter-folder/inner-folder/inner-inner-folder outter文件夹/内夹/内内夹

than, in the src of the minifyer you should type: 而不是,在压缩程序的src中,您应该输入:

outter-folder/**/*.js and all the outter-folder's subfolders and sub-subfolder's js files are going to be minified outter-folder / ** / *。js以及所有outter-folder的子文件夹和sub-subfolder的js文件将被缩小

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

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