Skip to content

.npmignore file #69

@skibz

Description

@skibz

Is there a valid reason why this package includes gifs and pngs when installed from NPM? They weigh in at 16 megabytes, and I doubt downstream codebases are likely to use them.

ant$ du -h node_modules/awesome-qr
4.0K	node_modules/awesome-qr/test
 48K	node_modules/awesome-qr/dist
 16M	node_modules/awesome-qr/art
 76K	node_modules/awesome-qr/lib/gif.js
 24K	node_modules/awesome-qr/lib/gifuct-js
192K	node_modules/awesome-qr/lib
 48K	node_modules/awesome-qr/src/gif.js
 12K	node_modules/awesome-qr/src/gifuct-js
128K	node_modules/awesome-qr/src
 16M	node_modules/awesome-qr

Please could we add a .npmignore file that prevents these images (and any other source code that isn't required to use the library) from being published?

I'd be happy to submit a patch for this, if you're open to the idea.

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