Skip to content

Commit

Permalink
perf: use node-sass instead of dart-sass
Browse files Browse the repository at this point in the history
BREAKING CHANGE: underlying sass implementation is changed
  • Loading branch information
Sergey Slipchenko committed May 31, 2021
1 parent 0b1aaec commit acdcbfb
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 77 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ function makeConfig({
loader: require.resolve('resolve-url-loader'),
options: { sourceMap: true },
},
require.resolve('sass-loader'),
{
loader: require.resolve('sass-loader'),
options: {
implementation: require('node-sass'),
},
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
"file-loader": "^6.2.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"mini-css-extract-plugin": "^1.6.0",
"node-sass": "^6.0.0",
"postcss-loader": "^5.2.0",
"react-refresh": "0.9.0",
"resolve-url-loader": "^4.0.0",
"run-script-webpack-plugin": "^0.0.11",
"sass": "^1.32.12",
"sass-loader": "^11.0.1",
"source-map-loader": "^3.0.0",
"url-loader": "^4.1.1",
Expand Down
Loading

0 comments on commit acdcbfb

Please sign in to comment.