New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

systemjs-sass-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-sass-loader

Enabled the use of .sass/.scss files in SystemJS projects

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
1
Created
Source

SystemJS SASS Loader (WIP)

This is a "working" version of a SASS Loader for SystemJS. It is suppose to work ONLY in the browser not in the Node environment so we don't have the ability to check files with FS. More on this soon when a project I'm working on is ready to be published. So for now - stay tuned ;)

There are still many bugs with this so for now, don't even try it haha :D

This works by compiling the SASS/SCSS on the fly and injecting it in the head.

I have managed to solve the issue with the crazy file imports by utilising SytemJS config property called meta (you can check the system.config.js file for more info). You would usually have a list of files in there anyway so it made sense to use it. Once again, because this is meant to be working in the browser NOT Node, we can't just use fs.readFile.

  • Support all of the crazy ways that you can import a file ie. "_components/_file/etc.scss".
  • Supoport for libsass options (example in the system.config.js file).
  • Support for importing SASS files from within SCSS files. This is a bug from libsass.
  • ...too many to list.

Keywords

systemjs

FAQs

Package last updated on 03 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts