JSPM

broccoli-sass-modular

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q30963F
  • License ISC

A Broccoli plugin for building scss files into css files 1:1.

Package Exports

  • broccoli-sass-modular

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (broccoli-sass-modular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Broccoli Sass Modular

This is an extremely simple plugin wrapper around node-sass 4 to allow transpiling sass sources into CSS.

This plugin is intended for use when writing CSS which is intended to be imported into webpack via require statements. Requiring CSS this way has a fundamental danger, which is that the source order of CSS files, which has side effects, can change when the js dependency structure changes. SCSS offers a great solution to this problem by allowing the user (or perhaps forcing the user with a linter) to put all styles inside a single top level selector which selects for the component which the styling should be constricted to.

The most important trade off right now is that this leaves no central location in which application wide variables, mixins, etc. might be defined. However having access to SASS syntax nesting is strictly better than not.

Source maps are also not supported yet.