Skip to content

Hiding patterns is not working #165

Closed
@ivancamilov

Description

@ivancamilov

According to the docs, if you append an underscore (_) to the pattern name it should "no longer show up in the drop-down navigation, the media pattern sub-type "view all" page, nor the style guide".

However, if you do this in patternlab-node the pattern still shows up in the "view all" page. I fixed this in my local copy by editing /builder/patternlab_assembler.js and adding this check around line 107:

// ignore files prepended with _
if(filename[0] == '_'){
  return;
}

Should I do a PR with this change?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions