如何导入 CSS 模块的类型与 Webpack?
为 CSS 生成(或自动生成) .d.ts文件? 使用经典的类型 import语句? 使用 ./styles.css.d.ts:
import * as styles from './styles.css'
Import using require Webpack function?
let styles = require("./styles.css");
But for the last approach I must define the require function.
What is the best approach or best option and one that can also handle IntelliSense for the CSS file definitions and classes?