Prepros pre-processor not compiling mixins

278 Views Asked by At

I am using Prepros preprocessor for the first time, I have following mixin in my less file.

.mq_max(@max_width; @rules) {
    @media only screen and (max-width: @max_width) {
        @rules();
    }
}

And I am calling it in my less file like this

.mq_max(1366px {
  // My code
});

It always work okay when I compile it with Koala but when I am trying it using Prepros I am getting this error

no matching destination was found for '.mq_max(1366px)'

Any clue what I am doing wrong here ?

1

There are 1 best solutions below

6
ChandanKr On

Add this in your Less file:

@mixin name {
  color: red;
  font-size: 25px;
  font-weight: bold;
  border: 1px solid blue;
}

.selector {
  @include name;
}