javascript - Uglify css classname like instagram or facebook -
how can uglifiy css files on instagram or facebook?
e.g _8f735
, _oofbn
, _6ltyr
it's react plugins or something? saw on instagram , facebook.
have @ css modules.
example react css modules:
in context of react, css modules this:
import react 'react'; import styles './table.css'; export default class table extends react.component { render () { return <div classname={styles.table}> <div classname={styles.row}> <div classname={styles.cell}>a0</div> <div classname={styles.cell}>b0</div> </div> </div>; } }
rendering component produce markup similar to:
<div class="table__table___32osj"> <div class="table__row___2w27n"> <div class="table__cell___2w27n">a0</div> <div class="table__cell___1ovw5">b0</div> </div> </div>
and corresponding css file matches css classes.
important: class names can have different format.
Comments
Post a Comment