@highpoint/java-sass-compiler

1.0.1 • Public • Published

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

Option Values Default Explanation
compress true, false false Create also a compressed version of the compiled CSS (only when output file is given)
ignoreWarnings true, false false Let compilation succeed even though there are warnings
in File path None The .scss file to compile (required)
minify true, false false Minify the compiled CSS with YUI Compressor
out File path None The .css file where the generated CSS is stored. If it is not defined, the compiled CSS will be written to standard output.
urlMode mixed, absolute, relative mixed Set URL handling mode

Readme

Keywords

Package Sidebar

Install

npm i @highpoint/java-sass-compiler

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.58 MB

Total Files

6

Last publish

Collaborators

  • gamalor
  • dustinneumann42
  • jkrehm
  • mciparelli
  • gjoneshpt