Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-sass-loader

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-sass-loader - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.github/workflows/node.js.yml

6

HISTORY.md
2.0.1 / 2021-11-18
==================
* chore: bump to 2.0.1
* doc: add badge
2.0.0 / 2021-02-23

@@ -3,0 +9,0 @@ ==================

18

lib/index.js

@@ -106,2 +106,16 @@ const path = require('path')

function hoistUseRule (content) {
const list = []
const cleared = content.replace(/@use [^;]*;/g, (match) => {
if (!list.includes(match)) {
list.push(match)
}
return ''
})
return list.join('\n') + cleared
}
function * mergeSources (opts, entry, resolve, dependencies, level) {

@@ -278,3 +292,3 @@ level = level || 0

const merged = yield mergeSources(
const merged = hoistUseRule(yield mergeSources(
options,

@@ -287,3 +301,3 @@ {

dependencies
)
))

@@ -290,0 +304,0 @@ dependencies.forEach(file => {

6

package.json
{
"name": "fast-sass-loader",
"description": "fast sass loader for Webpack",
"version": "2.0.0",
"version": "2.0.1",
"main": "lib/index.js",

@@ -12,4 +12,3 @@ "scripts": {

"test-cov": "nyc npm run test-local",
"test-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"ci": "npm run lint && npm run test-cov && npm run test-report",
"ci": "npm run lint && npm run test-cov",
"release": "npm test && npm-ensure -t changelog && git release $npm_package_version && npm publish",

@@ -63,3 +62,2 @@ "precommit": "standard && npm-ensure -t deps"

"mocha": "^3.2.0",
"node-sass": "^5.0.0",
"npm-ensure": "^1.1.0",

@@ -66,0 +64,0 @@ "nyc": "*",

# fast-sass-loader
[![Build Status](https://travis-ci.org/yibn2008/fast-sass-loader.svg?branch=master)](https://travis-ci.org/yibn2008/fast-sass-loader)
[![Coverage Status](https://coveralls.io/repos/github/yibn2008/fast-sass-loader/badge.svg)](https://coveralls.io/github/yibn2008/fast-sass-loader)
[![Node.js CI](https://github.com/yibn2008/fast-sass-loader/actions/workflows/node.js.yml/badge.svg)](https://github.com/yibn2008/fast-sass-loader/actions/workflows/node.js.yml)

@@ -20,3 +19,3 @@ Blazingly fast sass loader for webpack.

Since libsass has beed deprecated, fast-sass-loader will use sass instead of node-sass, you can use `options.implement` to specify any compatible sass compiler.
Since libsass has been deprecated, fast-sass-loader will use sass instead of node-sass, you can use `options.implement` to specify any compatible sass compiler.

@@ -23,0 +22,0 @@ ## vs `sass-loader`

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