SASS Compiler for Lektor,Thats based on Libsass.

lektor-scsscompile的Python项目详细描述


scsscompile

PyPI versionDownloads

自动编译sass的lektor的scss编译器。

使用libsass并查找.scss/.sass文件(忽略以下划线开头的部分文件,例如'u testfile.scss'), 作为构建过程的一部分编译它们。它只在需要时重建(文件已更改、导入的文件已更改或配置已更改)。当启动开发服务器时,它会在后台监视文件的更改,并在需要时重建它们。

安装

您可以使用Lektor的安装程序安装插件:

lektor plugins add lektor-scsscompile

或者手动将插件添加到lektorproject文件的packages部分:

[packages]
lektor-scsscompile =1.2.4

用法

要启用scsscompile,请在启动开发时传递scsscompile标志 服务器或运行生成时:

lektor build -f scsscompile
lektor build -f scsscompile

该插件具有以下设置,您可以根据需要进行调整:

parameterdefault valuedescription
source_dirasset_sources/scss/the directory in which the plugin searchs for sass files (subdirectories are included)
output_dirassets/css/the directory the compiled css files get place at
output_stylecompressedcoding style of the compiled result. choose one of: 'nested', 'expanded', 'compact', 'compressed'
source_commentsFalsewhether to add comments about source lines
precision5precision for numbers

具有默认配置的示例文件可以在configs/scsscompile.ini

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java RxJava很适合分支工作流吗?   java如何映射SAP FileOpenDialog?   java部署的应用程序无法将oauth2代码交换为令牌   java如何将JTable数据读入具有特殊字符(如中文)的ArrayList?   Eclipse下Java中的不可访问代码错误与死代码警告?   JavaEclipse生成的方法参数final   Android NDK错误:java。lang.UnsatifiedLinkError:未找到void的实现   使用regex[Java]按域分组电子邮件登录数据   java错误:无法解析:安卓。支持:支持。v7:29.0.2   从单链表Java中删除特定元素   java如何将多个枚举数据写入单个pojo并将其作为列表返回   JAVAsql。SQLException:数据库连接已关闭   在Java中使用什么策略来实现分层可重入读/写锁定?   java如何用Selenium测试图形   java如何正确地将Node、Edge和Dijkstra类链接到Main方法   500 != 请解释一下