Game not working

I followed the instructions https://github.com/jlitola/play-sass . My .sbt plugins read (for the last two lines)

resolvers += "Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases" addSbtPlugin("net.litola" % "play-sass" % "0.3.0")` 

For build.sbt, I previously had SassPlugin.sassSettings in the last line (separate from playScalaSettings). Now I changed it to

 net.litola.SassPlugin.sassSettings + play.Project.playScalaSettings 

However, I still can't get this to work :-). My files are in

app/assets/first.scss

app/assets/stylesheets/second.scss

app/assets/styles/third.scss

app/assets/style/fourth.scss

(EDIT: delibrerately different, so I know which one works), however, I don't see any css result. scss and sass work fine from the command line.

It seems that the changes in plugins.sbt and build.sbt are recognized by the game, because when I intentionally add a typo, SassPlugin.sassSetting instead of SassPlugin.sassSettings , reloading updates the error, which is fixed when I correct the typo back. Does anyone know what I'm doing wrong?

EDIT: I am in play2.2 btw.

0
source share
1 answer

Hi A few observations.

1) Structure: Save the sass files in the following structure

 app/assets/stylesheets/first.scsc app/assets/stylesheets/second.scsc app/assets/stylesheets/third.scsc app/assets/stylesheets/forth.scsc 

2) build.sbt keep the code on separate lines, at least with an interval between lines, as shown below.

 play.Project.playScalaSettings net.litola.SassPlugin.sassSettings 

3) plugins.sbt is excellent.

+1
source

Source: https://habr.com/ru/post/977787/


All Articles