IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css步骤:

1.下载yuicompressor.jar https://download.csdn.net/download/iasknew/14484062

2.选择File->Settings:

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第1张图片

3.选择Tools—>External Tools,点击右侧的“+”:

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第2张图片

4.填写信息

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第3张图片

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第4张图片

5.选中js文件,右键,选择External Tools—>js compress:

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第5张图片

6、最后效果:

IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css_第6张图片

 

参数填写示例:
java
-jar "C:\Program Files\JetBrains\PyCharm 2019.3.3\yuicompressor.jar" --type js --charset utf-8 $FilePath$ -o $FileNameWithoutExtension$.min.js
-jar "C:\Program Files\JetBrains\PyCharm 2019.3.3\yuicompressor.jar" --type css --charset utf-8 $FilePath$ -o $FileNameWithoutExtension$.min.css
$FileDir$

 

你可能感兴趣的:(IDEA(pycharm,phpstorm)添加外部插件-yuicompressor压缩js/css)