Socket
Socket
Sign inDemoInstall

get-sass-vars-loader

Package Overview
Dependencies
212
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-sass-vars-loader

Webpack wrapper for get-sass-vars


Version published
Maintainers
1
Created

Readme

Source

get-sass-vars-loader

Webpack wrapper for get-sass-vars

See get-sass-vars link for main package usage

Usage

// _variables.scss
$colors: (
  base: (primary: #1b7a9d, secondary: #454e67),
  message: (success: #719d46, warning: #efaa1b)
);

// !! means the webpack config wont run it
import sassVars from '!!get-sass-vars-loader!./path/to/_variables.scss'
console.log(sassVars)

// Output - json
{
  $colors: {
    base: {primary: "#1b7a9d", secondary: "#454e67"},
    message: (success: "#719d46", warning: "#efaa1b")
  }
}

Keywords

FAQs

Last updated on 16 Nov 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc