Skip to content

Commit 3e4e3fc

Browse files
pikaxznck
authored andcommitted
feat: Replace node-sass to sass (#56)
fixes #50 BREAKING CHANGE: Using `sass` instead of `node-sass` package.
1 parent f3af513 commit 3e4e3fc

File tree

4 files changed

+105
-258
lines changed

4 files changed

+105
-258
lines changed

lib/styleProcessors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const scss: StylePreprocessor = {
2121
map: any | null,
2222
options: any
2323
): StylePreprocessorResults {
24-
const nodeSass = require('node-sass')
24+
const nodeSass = require('sass')
2525
const finalOptions = Object.assign({}, options, {
2626
data: source,
2727
file: options.filename,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"jest": "^24.0.0",
4343
"less": "^3.9.0",
4444
"lint-staged": "^8.1.1",
45-
"node-sass": "^4.11.0",
4645
"pug": "^2.0.3",
46+
"sass": "^1.17.3",
4747
"stylus": "^0.54.5",
4848
"ts-jest": "^24.0.0",
4949
"typescript": "^3.3.0",

test/compileStyle.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test('preprocess sass', () => {
5757
const style = parse({
5858
source:
5959
'<style lang="sass">\n' +
60-
'$red: rgb(255, 0, 0);\n' +
60+
'$red: rgb(255, 0, 0)\n' +
6161
'.color\n' +
6262
' color: $red\n' +
6363
'</style>\n',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy