How to add custom css file in symfony
- check for node installed or not [node -v] if not install it.
- composer require symfony/webpack-encore-bundle
- npm install webpack-notifier
- composer require symfony/asset
- create a file in public/style/style.css
- call the css file in base.html.twig file with code as follow
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('style/style.css') }}" >
{% endblock %}
- npm run dev