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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.