patternplate-transform-node-sass

3.0.2 • Public • Published

patternplate-transform-node-sass stability

npm version Travis branch Appveyor branch

Process SASS and SCSS to CSS with patternplate.

Transformation

Input

// patterns/sass-example.scss 
@import 'normalize.scss';
 
@include normalize();
 
body {
  color: red;
  background: green;
  &.special {
    color: green;
    background: red;
  }
}

Output

/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
/* normalizing styles here */
 
body {
  color: red;
  background: green;
}
body.special {
  color: green;
  background: red;
}

Installation

npm install --save patternplate-transform-node-sass

Configuration

// configuration/patternplate-server/patterns.js
module.exports = {
  formats: {
    scss: {
      transforms: ['node-sass']
    }
  }
}
 
// configuration/patternplate-server/transforms.js
module.exports = {
  'node-sass': {
    inFormat: 'scss',
    outFormat: 'css',
    // https://github.com/sass/node-sass#options
    opts: {}
  }
}

See also


Copyright by Mario Nebl. Released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i patternplate-transform-node-sass

Weekly Downloads

0

Version

3.0.2

License

MIT

Last publish

Collaborators

  • kotzendekrabbe
  • lkuechler
  • rongae
  • marionebl