3.0.2 • Published 6 years ago

patternplate-transform-node-sass v3.0.2

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

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.

3.0.2

6 years ago

3.0.1

7 years ago

3.0.0

8 years ago

2.0.0

8 years ago