1

I am pretty new to Symfony and NPM, Composer etc. I set up my symfony project and installed Bootstrap 4 via NPM

npm install bootstrap

Now the bootstrap files are located in the "node_modules/bootstrap" folder. How can I include this sources correctly in my base.html.twig?

<link href="{{ asset('node_modules/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">

I don't know if that is the correct way. As I said, I am new to this.

1 Answer 1

1

You can use "import" in your js file to import css.

import 'bootstrap/dist/css/bootstrap.min.css';

https://reactstrap.github.io/

Sign up to request clarification or add additional context in comments.

Comments

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.