webmamba/sass-bundle
Composer 安装命令:
composer require webmamba/sass-bundle
包简介
Delightful Sass Support for Symfony + AssetMapper
关键字:
README 文档
README
This bundle make it easy to use Sass with Symfony's AssetMapper Component (no Node required!).
- Automatically download the correct Sass binary
- Adds a
sass:buildcommand to build and watch your sass changes
Installation
Install the bundle
composer require webmamba/sass-bundle
Usage
To use generated css, start by including the input file
(assets/styles/app.css by default)
{# templates.base.html.twig #}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('styles/app.css') }}">
{% endblock %}
Then you can create your scss file (assets/styles/app.scss by default)
And start writing your style.
Then run the command:
php bin/console sass:build --watch
And Thats it!
统计信息
- 总下载量: 303
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-07