我正在使用ag-grid react版本,我需要自定义它的材质主题,我使用他们提供的默认方法 https://www.ag-grid.com/react-getting-started/#customize-the-theme-look
if i == 0
事情是我在我的项目中使用postcss-loader,它为所有组件scss文件添加了前缀,所以在scss上面也得到了前缀,但默认的ag-grid类是不同的,因此css没有得到应用。
这是我的postcss-config
$ag-icons-path: "../node_modules/ag-grid/src/styles/icons/";
@import "../node_modules/ag-grid/src/styles/ag-grid.scss";
@import "../node_modules/ag-grid/src/styles/ag-theme-material.scss";
有没有解决方法,或者我可以忽略postcss-loader中的某些文件吗?