New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-scss

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-scss - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [2.1.0] - 2019-12-22
### Added
- Add `prefix` option @jackprosser
## [2.0.0] - 2019-12-22

@@ -18,5 +22,6 @@ ### Changed

[Unreleased]: https://github.com/thgh/rollup-plugin-scss/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/thgh/rollup-plugin-scss/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/thgh/rollup-plugin-scss/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/thgh/rollup-plugin-scss/compare/v1.0.0...v2.0.0
[1.0.0]: https://github.com/thgh/rollup-plugin-scss/compare/v0.0.1...v1.0.0
[0.0.1]: https://github.com/thgh/rollup-plugin-scss/releases

3

index.cjs.js

@@ -14,2 +14,3 @@ 'use strict';

var styles = {};
var prefix = options.prefix ? options.prefix + '\n' : '';
var includePaths = options.includePaths || ['node_modules/'];

@@ -24,3 +25,3 @@ includePaths.push(process.cwd());

var css = require('node-sass').renderSync(Object.assign({
data: scss,
data: prefix + scss,
includePaths: includePaths

@@ -27,0 +28,0 @@ }, options)).css.toString();

@@ -10,2 +10,3 @@ import { existsSync, mkdirSync, writeFile } from 'fs'

const styles = {}
const prefix = options.prefix ? options.prefix + '\n' : ''
let includePaths = options.includePaths || ['node_modules/']

@@ -20,3 +21,3 @@ includePaths.push(process.cwd())

const css = require('node-sass').renderSync(Object.assign({
data: scss,
data: prefix + scss,
includePaths

@@ -23,0 +24,0 @@ }, options)).css.toString()

{
"name": "rollup-plugin-scss",
"version": "2.0.0",
"version": "2.1.0",
"description": "Rollup multiple .scss, .sass and .css imports",

@@ -5,0 +5,0 @@ "main": "index.cjs.js",

@@ -75,2 +75,5 @@ # Rollup multiple .scss, .sass and .css imports

failOnError: true,
// Prefix global scss. Useful for variables and mixins.
prefix: `@import "./fonts.scss";`
})

@@ -77,0 +80,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc