Closed bluewings closed 6 years ago
In some cases js does not need to know about css files.
js
css
Most css files are deeply involved with pugs, and js does not need to handle css.
pugs
//- sample.pug // @import .scss => styles .root(className='{styles.a}') h1.greeting hello world!
//- sample.pug.transpiled.jsx import React from 'react'; import styles from './sample.scss'; export default function () { return ( <div className={`root ${styles.a}`}> <h1 className="greeting">hello world!</h1> </div> ); }
In some cases
js
does not need to know aboutcss
files.Most
css
files are deeply involved withpugs
, andjs
does not need to handlecss
.