Skip to content

Commit cf2e67e

Browse files
committed
Fxing breaking changes after upgarde in mage-minify task
1 parent 45546a7 commit cf2e67e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dev/tools/grunt/configs/mage-minify.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"legacy": {
33
"options": {
4-
"type": "yui-js",
5-
"tempPath": "pub/static/"
4+
"compressor": "yui-js"
65
},
76
"files": {
87
"<%= path.uglify.legacy %>": [
@@ -19,4 +18,4 @@
1918
]
2019
}
2120
}
22-
}
21+
}

dev/tools/grunt/tasks/mage-minify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ module.exports = function (grunt) {
1717
*/
1818
function getConfig(options, file) {
1919
return _.extend({
20-
fileIn: file.src,
21-
fileOut: file.dest
20+
input: file.src,
21+
output: file.dest
2222
}, options);
2323
}
2424

@@ -43,7 +43,7 @@ module.exports = function (grunt) {
4343
}
4444
};
4545

46-
new compressor.minify(config);
46+
compressor.minify(config);
4747
});
4848
});
4949
};

0 commit comments

Comments
 (0)