简体   繁体   English

如何在PhpStorm中捆绑JavaScript文件

[英]How to bundle JavaScript files in PhpStorm

How to combine 2 or more JavaScript files in to a one file in PhpStorm (OR WebStorm). 如何将2个或更多JavaScript文件合并到PhpStorm(OR WebStorm)中的一个文件中。

I've searched and found just this result but it is not an answer: Minifying JavaScript 我搜索并找到了这个结果,但它不是一个答案: 缩小JavaScript

I want something like this: Visual studio Bundler & Minifier plugin . 我想要这样的东西: Visual studio Bundler&Minifier插件

There's no built-in feature for that in IDE. 在IDE中没有内置功能。 You can configure a grunt task inside IDE to concatenate files with https://github.com/gruntjs/grunt-contrib-concat See also: Combine multiple JavaScript files into one JS file and Combine and Minify Multiple CSS / JS Files 您可以在IDE中配置grunt任务以使用https://github.com/gruntjs/grunt-contrib-concat连接文件。另请参阅:将多个JavaScript文件合并到一个JS文件中合并和缩小多个CSS / JS文件

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

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