samrith-s / parcel-plugin-structurize

A plugin to customize the output (dist) directory structure during production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for custom asset types

orionrush opened this issue · comments

It appeared to me that I could add a custom file type handler by simply incorporating the following into my package.json file like so:

"parcel-plugin-structurize": {
    "fonts": {
            "match": "*.{eto,woff,ttf}",
            "folder": "fonts"
        }
}

Is there a way to extend structurize to support abitrary file types?

Hey @orionrush, atm not any way I can think of. But I think what you could do, is just add a new structurer which gets called.

Check out this folder https://github.com/samrith-s/parcel-plugin-structurize/tree/master/src/structurers

Closing due to no response. Feel free to reopen if you have any more queries.