webant-handler-scss

4.0.1 • Public • Published

node-modules-webant-handler-scss

Require SCSS files with webant

Installation

$ npm install webant-handler-scss

Usage

Ensure the scss handler is present in your webant configuration file. For example:

{
    "entry":"src/js/main.js",
    "dest":"build/main.js",
    "handlers":["scss"]
}

You may now require SCSS files:

// Get the compiled CSS.
var css = require("../path/to/styles.scss");
 
// Apply the CSS to the document.
document.head.innerHTML += '<style type="text/css">' + css + '</style>';

See the webant module for more information.

Settings

compress

Can be either true or false (default). Controls whether the compiled CSS is compressed.

Tests Build Status

Ensure phantomjs is installed and in your PATH, then run:

$ npm test

Readme

Keywords

Package Sidebar

Install

npm i webant-handler-scss

Weekly Downloads

1

Version

4.0.1

License

MIT

Last publish

Collaborators

  • theakman2