{"id":20239185,"url":"https://github.com/edvin/libsass-filter","last_synced_at":"2026-01-04T06:30:58.981Z","repository":{"id":29514607,"uuid":"33052949","full_name":"edvin/libsass-filter","owner":"edvin","description":"Compiles SASS to CSS on-the-fly","archived":false,"fork":false,"pushed_at":"2024-04-08T12:54:21.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-07T17:53:42.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edvin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-28T22:36:40.000Z","updated_at":"2024-04-08T12:54:24.000Z","dependencies_parsed_at":"2022-08-22T08:10:49.102Z","dependency_job_id":null,"html_url":"https://github.com/edvin/libsass-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Flibsass-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Flibsass-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Flibsass-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Flibsass-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edvin","download_url":"https://codeload.github.com/edvin/libsass-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233829095,"owners_count":18736772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T08:37:51.125Z","updated_at":"2025-09-22T06:32:37.043Z","avatar_url":"https://github.com/edvin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libsass-filter\n\n## Compiles SASS to CSS on-the-fly\n\nlibsass-filter uses [libsass-maven-plugin](https://gitlab.com/haynes/libsass-maven-plugin)\n which uses [libsass](https://github.com/sass/libsass) under the covers via Jna native bindings.\n You are however not required to use Maven, we just use the sass bindings from libsass-maven-plugin to access libsass.\n \n It also supports autoprefixing via [autoprefixer](https://github.com/postcss/autoprefixer).\n \n### Installation\n \nInclude the following Maven dependency in your pom.xml:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eno.tornado\u003c/groupId\u003e\n        \u003cartifactId\u003elibsass-filter\u003c/artifactId\u003e\n        \u003cversion\u003e4.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\nThe default settings are good for development, as your stylesheets will be recompiled\non every request. This takes less than 100ms on my test setup with over 40 imports.\n\nFor production use you should use `libsass-maven-plugin` to precompile your stylesheets.\n Optionally, configure this filter to cache and compress in web.xml:\n \n     \u003cfilter\u003e\n         \u003cfilter-name\u003eSassFilter\u003c/filter-name\u003e\n         \u003cfilter-class\u003eno.tornado.libsass.SassFilter\u003c/filter-class\u003e\n         \u003cinit-param\u003e\n             \u003cparam-name\u003eoutputStyle\u003c/param-name\u003e\n             \u003cparam-value\u003ecompressed\u003c/param-value\u003e\n         \u003c/init-param\u003e\n         \u003cinit-param\u003e\n             \u003cparam-name\u003ecache\u003c/param-name\u003e\n             \u003cparam-value\u003etrue\u003c/param-value\u003e\n         \u003c/init-param\u003e\n         \u003c!-- Autoprefix CSS, requires npm install -g autoprefixer --\u003e\n         \u003cinit-param\u003e\n             \u003cparam-name\u003eautoprefix\u003c/param-name\u003e\n             \u003cparam-value\u003etrue\u003c/param-value\u003e\n         \u003c/init-param\u003e\n         \u003cinit-param\u003e\n             \u003cparam-name\u003eautoprefixBrowsers\u003c/param-name\u003e\n             \u003cparam-value\u003elast 2 versions, ie 10\u003c/param-value\u003e\n         \u003c/init-param\u003e\n         \u003cinit-param\u003e\n             \u003cparam-name\u003eautoprefixerPath\u003c/param-name\u003e\n             \u003cparam-value\u003epostcss -u autoprefixer\u003c/param-value\u003e\n         \u003c/init-param\u003e\n     \u003c/filter\u003e\n \n     \u003cfilter-mapping\u003e\n         \u003cfilter-name\u003eSassFilter\u003c/filter-name\u003e\n         \u003curl-pattern\u003e*.css\u003c/url-pattern\u003e\n     \u003c/filter-mapping\u003e\n \n     \u003c!-- Optional support for JSF resources --\u003e\n     \u003cfilter-mapping\u003e\n         \u003cfilter-name\u003eSassFilter\u003c/filter-name\u003e\n         \u003curl-pattern\u003e*.xhtml\u003c/url-pattern\u003e\n     \u003c/filter-mapping\u003e\n\n### Configuration\n \n All configuration options are set via init-params in web.xml.\n \n * `cache` (true|false) - Cache after the initial request. Default: false\n * `watch` (true|false) - Watch for file changes and recompile. Useful together with `cache`. Default: false\n * `outputStyle` (nested, expanded, compact, compressed) - Output CSS style. Default: compact.\n * `includePaths` - Additional include paths\n * `autoprefix` (true|false) - Add prefixes using [autoprefixer](https://github.com/postcss/autoprefixer) (requires `npm install --global autoprefixer`)\n * `autoprefixBrowsers` - What browsers to prefix for, defaults to `last 2 versions, ie 10`\n * `autoprefixerPath` - Path to autoprefixer with arguments, defaults to `postcss -u autoprefixer`.\n \n### Usage\n\n All requests to `.css` and optionally `.css.xhtml` are checked for a `.scss` counterpart,\n and if found, the SASS resources are compiled and returned as a CSS stylesheet.\n \n The default no-cache mode is so fast that you would probably never need to cache the\n result during development, but if you want to use this filter in production instead of\n precompiling your stylesheets, make sure you set `cache` to `true`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvin%2Flibsass-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedvin%2Flibsass-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvin%2Flibsass-filter/lists"}