Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on CSS Reminification: A crazy idea that worked. Parent comment
If that's the case, using CSS Modules, you can do in CSS:
.list-1 { ... } .list-2 { ... }
{ 'list-1': 'JSNF4S12', 'list-2': 'IE945JSN' }
const styles = require('file.css'); $('.' + styles[`list-${i}`]) // effectively $('.JSNF4S12')
There are no comments on this comment yet.
If that's the case, using CSS Modules, you can do in CSS:
requiring it will yield a map like this: which you can use this way: