fast-sass-loader
Advanced tools
Comparing version 2.0.0 to 2.0.1
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 @@ ================== |
@@ -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 => { |
{ | ||
"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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73866
16
18
518
224