How to use SCSS filter in Symfony2 under Windows?

前端 未结 3 910
失恋的感觉
失恋的感觉 2020-12-10 21:40

Actually, this is two questions:

  1. What is the correct way to use the SCSS filter in my Symfony project in Windows (in Twig templates) ? I mean, how do i use

3条回答
  •  醉话见心
    2020-12-10 22:29

    1. Unfortunately the twig scss extension is broke on windows. It is a known problem. I spent some time trying to come up with a work around but to no available. I found it best to just use the scss executable with the --watch parameter to simply create the css files and store them in the Resource/public directory. That can also simplify some deployment issues as you don't need to worry about having scss on your servers.

    2. Use of compass is not required for scss. Think of it as a library of useful bits of css. For example, if you ever get an urge to do css rounded edges, a Compass mixin will generate all of the vendor specific custom tags. Refer to the documentation for details on using it.

提交回复
热议问题