对于CSS文件,我已经创建了一个文件监控器,如本手册中所述.另请参阅手册,它们均使用YUI压缩器
For CSS files I have created a file watcher like described in this manual. Also for JS files, see manual, which both uses the YUI Compressor
但是我没有找到如何添加文件查看器,以最小化html文件(例如,删除注释,..).如何使用PhpStorm自动缩小html文件?
But I didn't find how to add file watchers, which minify html files (e.g. removing comments, ..). How can I automatically minify html files with PhpStorm?
推荐答案我建议您查看 HTMLMinifier -具有CLI,因此可以将其设置为文件监视程序,也可以将其配置为 Grunt任务或 Gulp任务,并使用Grant/Gulp控制台执行
I'd suggest looking at HTMLMinifier - it has CLI and thus can be set up as a file watcher, also it can be configured as Grunt task or Gulp task and executed using Grant/Gulp console
更多推荐
如何自动缩小PhpStorm/WebStorm中的html文件?
发布评论