still_scss
still_scss
provides a Still preprocessor to support processing .scss files in Still projects.
Usage
Add the dependency to your project's mix.exs
:
def deps do
[
{:still_scss, git: "https://github.com/pepicrft/still_scss.git"}
]
end
Then edit the project's configuration to include the StillScss.Preprocessor
preprocessor:
config :still,
dev_layout: false,
input: Path.join(Path.dirname(__DIR__), "priv/site"),
output: Path.join(Path.dirname(__DIR__), "_site"),
preprocessors: %{
".scss" => [
StillScss.Preprocessor,
Still.Preprocessor.OutputPath,
Still.Preprocessor.URLFingerprinting,
Still.Preprocessor.Save
]
}
You can then refer to your .scss
file using the link_to_css
helper:
= link_to_css @env, "/css/styles.scss", media: "all"
Development
Release
To release a new version of the package bump the version in mix.exs
and run mix hex.publish
. Note that you need to have the right permissions on hex.