@alchemy-js/transmute-sass

1.0.1 • Public • Published

Transmute Sass

Transmutes Sass for the Alchemy static site generator.

  • Transmutes Sass content to CSS
  • Transmutes file extension from .scss to .css
  • Options object requires a target entry file for Sass compilation
  • Options object also accepts all valid node-sass options

Installation

npm i @alchemy/transmute-sass

API

This is a wrapper around the node-sass package, accepting all valid options as an object.

const Alchemy = require('@alchemy-js/alchemy');
const sass = require('@alchemy-js/transmute-sass');

Alchemy({
  /* file paths */
}).clean()
  .transmute(sass({
    /* required target/entry to compile sass*/
    target: 'main',
    /* accepts valid node-sass options as an object */
    sass: { includePaths: ['./data/styles'] },
  })
  .build()

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.12

Package Sidebar

Install

npm i @alchemy-js/transmute-sass

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.75 kB

Total Files

5

Last publish

Collaborators

  • johnfoderaro