Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do I set sass options? #4

Closed
syfl opened this issue Nov 20, 2012 · 2 comments
Closed

Question: How do I set sass options? #4

syfl opened this issue Nov 20, 2012 · 2 comments

Comments

@syfl
Copy link

syfl commented Nov 20, 2012

Thanks for the plugin!
I am fairly new to scala and play 2 so I apologize if there is an obvious answer to the following questions:

How to I set additional options for the sass compiler?

I tried the following but the options don't seem to get picked up by the compiler

import net.litola.SassPlugin
import net.litola.SassPlugin._

object ApplicationBuild extends Build {

val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
      // Add your own project settings here
           sassOptions := Seq("--compass","-r", "zurb-foundation")
    )

I would appreciate any hint.

Thanks for your effort!
cheers
syfl

@syfl
Copy link
Author

syfl commented Nov 20, 2012

I got it working by adding

net.litola.SassPlugin.sassOptions := Seq("--compass","-r", "zurb-foundation")

to the build.sbt file. Closing this issues then. Anyhow, I would love to know if this is the right way to do it :)

@syfl syfl closed this as completed Nov 20, 2012
@ndeverge
Copy link

@syfl I got it working using:

import net.litola.SassPlugin

object ApplicationBuild extends Build {
...

  val main = play.Project(appName, appVersion, appDependencies).settings(
        SassPlugin.sassOptions := Seq("--compass","-r", "zurb-foundation"),
        SassPlugin.sassEntryPoints <<= (sourceDirectory in Compile)(base => ((base / "assets" ** "*.sass") +++ (base / "assets" ** "*.scss") --- base / "assets" ** "_*")), 
        resourceGenerators in Compile <+= SassPlugin.sassWatcher
  )
}

Under Play 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants