Skip to content

Dist models just increase the size of node_modules unnecessarily (and aren't useful) #905

Open
@ghnp5

Description

@ghnp5

Now that the models are bundled, with PR #811, the size of "node_modules/nsfwjs" is now 3 x 3 Models bigger.

The modules appear in the following subdirectories:

models
esm
cjs

The 3 models, in these 3 folders.

And, none of them are really usable... because they're in the .min.js format.

Therefore, I still need to ship my own files, with the actual raw models, in some directory that is not the node_modules.

Is it possible to either remove the bundled models completely, by ignoring them in the build/publish,
or at least ship only ONE version of them, being the raw files?

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions