我使用最新的 PhpStorm 2017.2.3 和最新的 uglify.js。在我的工具设置 ID 中执行以下操作:
比我在模块目录中添加一个测试文件(test.js)并在里面获取一些代码:
function test () {
var messsage = 'hello world';
alert(messsage);
}
丑化结果是这样的:
function test(){var messsage="hello world";alert(messsage)}
该工具不会缩小代码,它只会把它放在一行中!我必须在设置中更改什么以缩小 js 代码?