Skip to content

Tag: webpack

Using sass with Antd and CRA

I am trying to integrate SASS with antd and CRA. I followed many tutorials but most of them were created years back and all of them throw some error. Somehow I found an article which is working fine link But I am worried that above solution is a hacky way of integrating SASS, so some day it may stop working.

Can`t resolve image.png in styles.css

Webpack cant build the project, because cant resolve image. Project structure Here is webpack.config.js and main.css Error message Answer Seems like url() should take a string as a parameter see here So try in main.css (and make sure that the relative path to bg.png file from main.css one is correct):