mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 04:10:04 +02:00
update minify
This commit is contained in:
8
node_modules/clean-css/lib/writer/helpers.js
generated
vendored
8
node_modules/clean-css/lib/writer/helpers.js
generated
vendored
@@ -77,7 +77,9 @@ function lastPropertyIndex(tokens) {
|
||||
function property(context, tokens, position, lastPropertyAt) {
|
||||
var store = context.store;
|
||||
var token = tokens[position];
|
||||
var isPropertyBlock = token[2][0] == Token.PROPERTY_BLOCK;
|
||||
|
||||
var propertyValue = token[2];
|
||||
var isPropertyBlock = propertyValue && propertyValue[0] === Token.PROPERTY_BLOCK;
|
||||
|
||||
var needsSemicolon;
|
||||
if ( context.format ) {
|
||||
@@ -111,7 +113,9 @@ function property(context, tokens, position, lastPropertyAt) {
|
||||
case Token.PROPERTY:
|
||||
store(context, token[1]);
|
||||
store(context, colon(context));
|
||||
value(context, token);
|
||||
if (propertyValue) {
|
||||
value(context, token);
|
||||
}
|
||||
store(context, needsSemicolon ? semicolon(context, Breaks.AfterProperty, isLast) : emptyCharacter);
|
||||
break;
|
||||
case Token.RAW:
|
||||
|
Reference in New Issue
Block a user