Run Sass Command Line Tool Without Node.js

  • Don’t have to install extra software (like a whole node.js). Would like to accomplish this job only with Docker.
  • No need to setup a whole gulp tasks just to transpile Sass files.
  • Automatically transpile Sass files, and reload the browser while files change.
FROM node:lts-alpine
RUN mkdir /app
WORKDIR /app
RUN apk update && apk upgrade
#install Sass
RUN npm install -g sass
docker run -it --rm -v $(pwd):/app sass sass --watch ./:./

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store