1.0.1 • Published 5 years ago

@highpoint/merge-scss v1.0.1

Weekly downloads
49
License
MIT
Repository
github
Last release
5 years ago

Merge SCSS

Merges an SCSS file and all of its imports together.

Installation

yarn add -D @highpoint/merge-scss

Usage

In your package.json file's scripts section, add a script similar to this:

"merge-scss": "merge-scss --in css/main.scss --out dist/bundle.scss"

Alternatively, use as a module in your project like this:

const fs = require('fs');
const mergeSCSS = require('@highpoint/merge-scss');

mergeSCSS('./main.scss')
  .then(scss => fs.writeFileSync('./dist/out.scss', scss));