如何在汇总中生成css的输入

问题描述 投票:1回答:1

我在我的源代码中使用汇总作为我的模块构建器和Typescript。现在,我需要为我的模块定义一些CSS文件。在将我的CSS文件导入.ts文件时,我收到以下错误Cannot find module './styles.css'.如何为我的CSS文件生成输入?

我遇到了一个npm包typed-css-modules来生成打字。我尝试使用它,但我的CSS类不再导出到我的.ts文件。

css typescript typescript-typings rollup
1个回答
2
投票

无论如何,我找到了解决问题的方法。我现在使用这个包来生成Typings

rollup-plugin-postcss-modules

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.