Provide tree-shakable exports?
Opened this issue ยท 5 comments
Hi, I'd like to be able to import just the colors my site uses, but the package structure doesn't allow importing tree-shakable colors. (And it's a really big bundle!) It would be great to be able to do:
import {facebook, twitter} from 'brand-colors';
For a while, I was able to import the colors I needed directly from the json data, but after upgrading to webpack 5, it seems that options no longer available.
Hi, I'd like to be able to import just the colors my site uses, but the package structure doesn't allow importing tree-shakable colors. (And it's a really big bundle!) It would be great to be able to do:
import {facebook, twitter} from 'brand-colors';
For a while, I was able to import the colors I needed directly from the json data, but after upgrading to webpack 5, it seems that options no longer available.
I forked this repository and created my own customized version for javascript supporting . take a look .
@morteza-jamali Thanks! Awesome, man! :)
@reimertz I do still think this feature would be an excellent add to the source repo.
Hi all! I am all up for adding this feature @mikestopcontinues!
@morteza-jamali, you up for creating a PR?
Also, I usually don't care about these things but I saw you(@morteza-jamali) deleted the LICENSE in your fork and replaced it with your own (name). I spent quite a lot of time to get this working back in the day so that made me a little bit sad. ๐
Hi all! I am all up for adding this feature @mikestopcontinues!
@morteza-jamali, you up for creating a PR?Also, I usually don't care about these things but I saw you(@morteza-jamali) deleted the LICENSE in your fork and replaced it with your own (name). I spent quite a lot of time to get this working back in the day so that made me a little bit sad. ๐
@reimertz thank you for your mentioning about license file . I removed license file accidently and re-generated it . I review source code and fix problems . Sorry about that ๐
I'll create a PR soon .