Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Size, type and extension not included anymore? #16

Description

@Dylan190774

Hi,

I used this plugin a couple of years ago, and it worked fine, but now in a rebuild of the project , with a newer version of this plugin (with Webpack5), something goes wrong.

In the old project I got the size, extension and type of each file in the json, but these are missing when I use the newer version.

I use it like this:

          new DirectoryTreePlugin({
            dir: "./src/assets/backgrounds",
            path: "./src/_backgrounds.json",
            extensions: /\.jpg/,
            enhance: (item, options) => {
              item.path = item.path
                .replace(/src\\|src\//g, "")
                .replace(/\\/g, "/");
              return item;
            },
          })

Has something changed, or am I doing something wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions