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

Diff for: lib/styleProcessors/index.ts

+1-1
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,

Diff for: package.json

+1-1
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",

Diff for: test/compileStyle.spec.ts

+1-1
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)