Skip to content

Importing single icon to a project adds 227kb of overhead in a build #112

@josephfusco

Description

@josephfusco

Do you want to request a feature or report a bug?

Seems like a bug but could be user error with how it is being imported.

What is the current behavior?

When an icon is imported into a project, all icons are being included in the build. This adds approximately 227kb of total overhead to a project even when only 1 icon is being used.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

Screen Shot 2020-05-27 at 7 30 05 AM

What is the expected behavior?

To only include the icons that are imported.

Which versions of MDL, and which browser / OS are affected by this issue? Did this work in previous versions of MDL?

"@masonite/svg-icons": "1.2.0"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions