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

Change source dir to a sassify specific key #52

Open
Lasering opened this issue Aug 29, 2022 · 0 comments
Open

Change source dir to a sassify specific key #52

Lasering opened this issue Aug 29, 2022 · 0 comments

Comments

@Lasering
Copy link

Problem

Currently the sassify source dir is defined with:

Assets / sassify := Def.task {
  val sourceDir = (Assets / sourceDirectory).value
  val targetDir = (Assets / sassify / resourceManaged).value
  (...)
}

If I need to change the source dir for sassify I'm forced to change the sourceDirectory for all the sbt-web assets. This could be easily changed with:

val sourceDir = (Assets / sassify / sourceDirectory).value

Since Assets / sassify / sourceDirectory is not explicitly set sbt will search the "parent" Assets / sourceDirectory, thus producing the same behavior as the current code. However if the user sets Assets / sassify / sourceDirectory then the source directory will change just for sassify.

Why is this useful?

I want to have my .scss alongside with my .scala sources. This is especially helpful on frontend projects.

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

1 participant