All Projects → madoushi → sbt-sass

madoushi / sbt-sass

Licence: Apache-2.0 license
A fork of the sbt-sass repository which seems to be abandoned.

Programming Languages

scala
5932 projects
CSS
56736 projects

Projects that are alternatives of or similar to sbt-sass

sbt-elm
Scala Build Tool (SBT) plugin for the Elm programming language
Stars: ✭ 44 (+37.5%)
Mutual labels:  sbt, sbt-plugin, sbt-web
Sbt Ignore Play Generated
Configure linters and coverage tools to ignore Play's generated source files.
Stars: ✭ 10 (-68.75%)
Mutual labels:  sbt, play-framework, sbt-plugin
Sbt Play Gulp
Gulp asset pipeline for Play Framework
Stars: ✭ 38 (+18.75%)
Mutual labels:  sbt, sbt-plugin, playframework
Sbt Crossproject
Cross-platform compilation support for sbt.
Stars: ✭ 176 (+450%)
Mutual labels:  sbt, sbt-plugin
Sbt S3 Resolver
☁️Amazon S3-based resolver for sbt
Stars: ✭ 112 (+250%)
Mutual labels:  sbt, sbt-plugin
sbt-sonar
An sbt plugin which provides an easy way to integrate Scala projects with SonarQube.
Stars: ✭ 62 (+93.75%)
Mutual labels:  sbt, sbt-plugin
Flyway Sbt
Flyway SBT plugin
Stars: ✭ 101 (+215.63%)
Mutual labels:  sbt, sbt-plugin
sbt-babel
An SBT plugin to perform Babel compilation.
Stars: ✭ 12 (-62.5%)
Mutual labels:  sbt, sbt-plugin
Sbt Unidoc
sbt plugin to create a unified API document across projects
Stars: ✭ 113 (+253.13%)
Mutual labels:  sbt, sbt-plugin
Sbt Fresh
sbt-plugin to create an opinionated fresh sbt project
Stars: ✭ 229 (+615.63%)
Mutual labels:  sbt, sbt-plugin
sbt-ghpages
git, site and ghpages support for sbt projects.
Stars: ✭ 94 (+193.75%)
Mutual labels:  sbt, sbt-plugin
Sbt Dependency Check
SBT Plugin for OWASP DependencyCheck. Monitor your dependencies and report if there are any publicly known vulnerabilities (e.g. CVEs). 🌈
Stars: ✭ 187 (+484.38%)
Mutual labels:  sbt, sbt-plugin
Sbt Native Packager
sbt Native Packager
Stars: ✭ 1,480 (+4525%)
Mutual labels:  sbt, sbt-plugin
Scala Play React Seed
❄️ Java Play 2.7.x + React seed project with full-fledged build process
Stars: ✭ 180 (+462.5%)
Mutual labels:  sbt, play-framework
Sbt Prompt
An SBT plugin for making your SBT prompt more awesome
Stars: ✭ 107 (+234.38%)
Mutual labels:  sbt, sbt-plugin
Sbt Jacoco
JaCoCo Code Coverage plug-in for sbt.
Stars: ✭ 115 (+259.38%)
Mutual labels:  sbt, sbt-plugin
Gatling Sbt Plugin Demo
Showcase of the Gatling Plugin for SBT
Stars: ✭ 137 (+328.13%)
Mutual labels:  sbt, sbt-plugin
Sbt Tpolecat
scalac options for the enlightened
Stars: ✭ 227 (+609.38%)
Mutual labels:  sbt, sbt-plugin
Sbt Docker Compose
Integrates Docker Compose functionality into sbt
Stars: ✭ 168 (+425%)
Mutual labels:  sbt, sbt-plugin
Scala Play Angular Seed
🍀 Scala Play 2.7.x + Angular 8 with Angular CLI seed project with full-fledged build process
Stars: ✭ 85 (+165.63%)
Mutual labels:  sbt, play-framework

SASS plugin for sbt

Build Status Download

A sbt-plugin that enables you to use SASS in your project.

This plugin is based on sbt-sass which is based on play-sass. Both plugins seem to be abandoned. Therefore we decided to create this project.

The initial development of this plugin was sponsored by the Wegtam GmbH.

DEPRECATION NOTICE for Ruby-SASS!

The base of this plugin is the sass rubygem which is now deprecated. See the website for details: https://sass-lang.com/ruby-sass

As long as the gem is available this plugin will continue to work. However if it indeed ceases to exist please consider using the sbt-sassify plugin as it uses the libsass implementation as backend.

Prerequisites

A sass compiler needs to be installed for the plugin to work. This means that the sass executable needs to be found in path. Sass can be installed by installing sass ruby gem (minimal version 3.4.0).

% gem install sass

You can verify that sass has been installed by following command:

% sass -v

Also you should install (opitonal) compass if you want to use it:

% gem install compass

Compatibility

The plugin is based upon the sbt-web project therefore it should be compatible with any sbt project using sbt 0.13.8 or higher and with any version of the Play Framework 2.3 or higher.

Usage

We follow the conventions of the sbt-web project regarding the directory layout. To simplify things it is recommended to just use the directory app/assets/css for sass files in projects using the Play Framework.

Files starting with an underscore (_) are not compiled into css files. They can of course be referenced from other sass files via an @import directive.

Installation

Add the madoushi sbt-plugins repository at bintray to your resolvers in build.sbt:

resolvers += "Madoushi sbt-plugins" at "https://dl.bintray.com/madoushi/sbt-plugins/"

Now you can include the plugin in project/plugins.sbt or project/sbt-sass.sbt like this:

addSbtPlugin("org.madoushi.sbt" % "sbt-sass" % "VERSION")

You should use the current stable version for VERSION.

Options

Some options can be set for the plugin and the sass executable.

sassExecutable

This options tells the plugin the exact location of the sass program. If it is available from PATH this option doesn't have to be set.

sassExecutable in Assets := List("/home/user/.rbenv/shims/sass")

sassOptions

To pass additional options to sass this setting can be used. To use compass for example use the following:

sassOptions in Assets ++= Seq("--compass", "-r", "compass")

sassGenerateMinifiedOutput

Defines if a minified css file (named *.min.css) should be created in addition to the unminified file for each sass file not starting with an underscore (default is true).

Disabling the minified version improves compilation speed (needs about half the time then) because each version needs a separate invocation of sass. You can alternatively use sbt-css-compress for creating the minified version only when creating a package for production.

For disabling the minified version (and improving compilation speed), use the following:

sassGenerateMinifiedOutput in Assets := false

Development

Please refer to the contributing guide.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].