trentrichardson / cakephp-shrink

Shrink is a CakePHP plugin to Compile, Combine, Compress js, css, less, sass, coffee assets
16 stars 9 forks source link

Parse Error compiling Boostrap 4 - _variables.scss #10

Open mittererr opened 7 years ago

mittererr commented 7 years ago

I get a parse error while compiling _variables.scss from Bootstrap 4 framework.

parse error: failed at@each $key, $num in $map {/../scss/bootstrap-4.0.0/_variables.scss on line 47

The code is: @mixin _assert-ascending($map, $map-name) { $prev-key: null; $prev-num: null; @each $key, $num in $map { @if $prev-num == null { // Do nothing } @else if not comparable($prev-num, $num) { @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !"; } @else if $prev-num >= $num { @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !"; } $prev-key: $key; $prev-num: $num; } }

I know, Bootstrap 4 is alpha at the moment but I use it sucessfully with compilers in Wordpress.

mittererr commented 7 years ago

There seems to be a problem with SASS lists too.

This $sizes: ( 25: 25%, 50: 50%, 75: 75%, 100: 100% ) !default;

Can not be compiled. Results in a parse error.