Skip to content

Commit

Permalink
feat: Replace node-sass to sass (#56)
Browse files Browse the repository at this point in the history
fixes #50

BREAKING CHANGE: Using `sass` instead of `node-sass` package.
  • Loading branch information
pikax authored and znck committed Apr 11, 2019
1 parent f3af513 commit 3e4e3fc
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 258 deletions.
2 changes: 1 addition & 1 deletion lib/styleProcessors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const scss: StylePreprocessor = {
map: any | null,
options: any
): StylePreprocessorResults {
const nodeSass = require('node-sass')
const nodeSass = require('sass')
const finalOptions = Object.assign({}, options, {
data: source,
file: options.filename,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"jest": "^24.0.0",
"less": "^3.9.0",
"lint-staged": "^8.1.1",
"node-sass": "^4.11.0",
"pug": "^2.0.3",
"sass": "^1.17.3",
"stylus": "^0.54.5",
"ts-jest": "^24.0.0",
"typescript": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion test/compileStyle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('preprocess sass', () => {
const style = parse({
source:
'<style lang="sass">\n' +
'$red: rgb(255, 0, 0);\n' +
'$red: rgb(255, 0, 0)\n' +
'.color\n' +
' color: $red\n' +
'</style>\n',
Expand Down
Loading

0 comments on commit 3e4e3fc

Please sign in to comment.