Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leeight committed Apr 17, 2014
1 parent 6f0c2c2 commit e402101
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/processor/css-compressor.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ CssCompressor.prototype.isExclude = function( file ) {
*/
CssCompressor.prototype.process = function ( file, processContext, callback ) {
var compressOptions = this.compressOptions;
var options = {};
var options = {
// 可能存在bug,因此禁用优化的功能.
// https://github.com/ecomfe/edp/issues/190
noAdvanced: true,
keepBreaks: true
};

// clone compressOptions
for ( var key in compressOptions ) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"escodegen": "~1.2.0",
"estraverse": "~1.5.0",
"uglify-js": "~2.4.12",
"clean-css": "~2.1.0",
"clean-css": "~2.1.6",
"iconv-lite": "~0.2.11",
"html2js": "~0.0.2",
"stylus": "~0.42.2"
Expand Down

0 comments on commit e402101

Please sign in to comment.