What is the correct way to add bootstrap to a symfony app?

后端 未结 6 598
灰色年华
灰色年华 2021-02-13 13:48

I\'m using symfony framework 3 to develop a web application. I need to add boostrap\'s functionality to my application. I installed bootstrap using the below command. (I\'m usin

6条回答
  •  走了就别回头了
    2021-02-13 14:39

    The Symfony Best Practies gives the answer for this Problem: https://symfony.com/doc/current/best_practices.html#web-assets

    If you are developing an application like this, you should use the tools that are recommended by the technology, such as Bower and GruntJS. You should develop your frontend application separately from your Symfony backend (even separating the repositories if you want).

    In our project we use grunt to build and concat those files into the web-folder.

提交回复
热议问题