Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Compass "watch" docker container

It compiles sass or scss files using compass open-source CSS Authoring Framework

It's intended to be left running on your development machine, so everytime something changes in your sass sources, it will compile the css to the output folder you configure in the config.rb file.

How to use this image


First, you need to configure your folders in a config.rb file, placed on the sass root folder. Here's an example folder structure, and its corresponding config.rb file.

Folder structure:


config.rb file:

# Require any additional compass plugins here.

#Folder settings
css_dir = "../public/css"          #where the CSS will saved
sass_dir = "sass"           #where our .scss files are
images_dir = "../public/img"    #the folder with your images

# You can select your preferred output style here (can be overridden via the command line):
output_style = :expanded # After dev :compressed

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = true

# Obviously
preferred_syntax = :scss

Using docker run

docker run -d -v /src:/src antonienko/compass-watch watch --poll /src/compass

Using docker compose

  build: antonienko/compass-watch
  command: watch --poll /src/compass
    - /src:/src
Docker Pull Command

Comments (0)