html-bricks-plugin-sass

0.1.3 • Public • Published

html-bricks-plugin-sass

Sass support for html-bricks using node-sass.

Requirements

html-bricks >= 0.3.

Installation

Install using npm

npm install --save-dev html-bricks-plugin-sass

Then include the plugin in your config

{
  "plugins": [
    "plugin-sass"
  ]
}

Usage

When you have sass files in your src folder (ending in .scss or .sass), these will be compiled to pure css and written to their original location but as .css files instead of sass files.

This means that you should include them using the .css extension.

Example

src/index.scss

body {
  & * {
    box-sizing: border-box;
  }
}

src/index.html

<head>
  <link rel="stylesheet" type="text/css" href="/index.css">
</head>

Package Sidebar

Install

npm i html-bricks-plugin-sass

Weekly Downloads

7

Version

0.1.3

License

MIT

Unpacked Size

3.27 kB

Total Files

4

Last publish

Collaborators

  • gustavgb