1

I am learner to react js and webpack too. In my project, i had a style.css file, i can include it in my html,it works fine. But i want to use materialize css to add stylings. How to include the materialize css in webpack? can anyone suggest me how to do this?

First i did,

npm install materialize-css --save

Then i add this in webpack at modules

{
test: /.css$/, loader: "style-loader!css-loader" , include: /node_modules/ } ,

I referred these links, How to include materialize-css npm package with webpack

How to use materialize-css with React?

But i don't understand where to exactly include and what to include for materialize css to be included in file, kindly someone help me out

Community
  • 1
  • 1

0 Answers0