DEV Community

Discussion on: Easy Inline CSS3 Lookups in JavaScript

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

One more note on bundle size. If I were to put this into a proper NPM "package", I could create deploy hooks that would essentially empty out the lookup class and replace the code with the raw text/number values for the CSS properties. But, for the time being, that kinda feels like overkill and I don't have the time to dive into that...

Collapse
 
isaachagoel profile image
Isaac Hagoel

Another interesting option might be an IDE plug-in.
It could also maybe provide some documentation for each attribute/ value on the fly.
But yhea.. probably an overkill :)

Thread Thread
 
isaachagoel profile image
Isaac Hagoel
Thread Thread
 
bytebodger profile image
Adam Nathaniel Davis

Ideally, the plugin would be configurable, so you could drop in any object that would serve as a kinda "definition file". It could then be used in your autocompletes without needing to be bundled into the code itself.

It should be configurable, because even if this plugin worked beautifully, I'd hate to have to write another plugin (or find another one out there on the interwebs) the next time I have another set of commonly-used constants that I want to autocomplete.