Menu icon Foundation

My Posts

No Content

My Comments

Katie commented on Will Jayroe's post almost 5 years

While you wait for a proper fix, the following might help.

It did help me.

1 - Open _functions.scss in the foundation/components folder.

2 - find the mixin as shown below, it is near the top

@mixin exports($name) {
  @if (index($modules, $name) == false) {
     $modules: append($modules, $name);
    @content;
    }
 }

This is the error problem.

3 - Change the block of code to:

@mixin exports($name) {
   @if(not index($modules, $name)) {
    $modules: append($modules, $name);
    @content;
    }
 }

4 - Run compass watch or rebuild your CSS file in the usual way.

This will result in all the usual Foundation included components being included and your CSS file will not balloon. Mine went from 37k to 175k. which is about what I would have expected, perhaps a little smaller, but everything seems to be working correctly.

I hope this helps.

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Will Jayroe's post almost 5 years

While you wait for a proper fix, the following might help.

It did help me.

1 - Open _functions.scss in the foundation/components folder.

2 - find the mixin as shown below, it is near the top

@mixin exports($name) {
  @if (index($modules, $name) == false) {
     $modules: append($modules, $name);
    @content;
    }
 }

This is the error problem.

3 - Change the block of code to:

@mixin exports($name) {
   @if(not index($modules, $name)) {
    $modules: append($modules, $name);
    @content;
    }
 }

4 - Run compass watch or rebuild your CSS file in the usual way.

This will result in all the usual Foundation included components being included and your CSS file will not balloon. Mine went from 37k to 175k. which is about what I would have expected, perhaps a little smaller, but everything seems to be working correctly.

I hope this helps.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content