1.0.1 • Published 6 years ago

@highpoint/java-sass-compiler v1.0.1

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

java-sass-compiler

Node wrapper around Vaadin's Java sass-compiler

Installation

npm install hp-mobile/node-java-sass-compiler

Usage

const javaSassCompiler = require('java-sass-compiler');

javaSassCompiler({
  in: 'file.scss',
  out: 'file.css',
  minify: true
}, (err, stdout, stderr) => {
  if (err) {
    console.error(`Compile error: ${err}`);
  }

  console.log(`stdout ${stdout}`);
  console.log(`stderr ${stderr}`);
});

Options

OptionValuesDefaultExplanation
compresstrue, falsefalseCreate also a compressed version of the compiled CSS (only when output file is given)
ignoreWarningstrue, falsefalseLet compilation succeed even though there are warnings
inFile pathNoneThe .scss file to compile (required)
minifytrue, falsefalseMinify the compiled CSS with YUI Compressor
outFile pathNoneThe .css file where the generated CSS is stored. If it is not defined, the compiled CSS will be written to standard output.
urlModemixed, absolute, relativemixedSet URL handling mode