Skip to content

🎨 A scss preprocessor for the Still static site generator

License

Notifications You must be signed in to change notification settings

pepicrft/still_scss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

still_scss

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.

About

🎨 A scss preprocessor for the Still static site generator

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages