Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 5ceab58

Browse files
committed
fix: move to sass package
* `node-sass` has been deprecated * move to supported `sass` package
1 parent 7651699 commit 5ceab58

File tree

3 files changed

+64
-558
lines changed

3 files changed

+64
-558
lines changed

gatsby-config.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ module.exports = {
137137
icon: `src/images/icon.png`, // This path is relative to the root of the site.
138138
},
139139
},
140-
'gatsby-plugin-sass',
141-
// this (optional) plugin enables Progressive Web App + Offline functionality
142-
// To learn more, visit: https://gatsby.dev/offline
143-
// `gatsby-plugin-offline`,
144-
140+
{
141+
resolve: `gatsby-plugin-sass`,
142+
options: {
143+
implementation: require('sass'),
144+
},
145+
},
145146
{
146147
resolve: `gatsby-plugin-mdx`,
147148
options: {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"gatsby-plugin-manifest": "^3.8.0",
2121
"gatsby-plugin-mdx": "^2.8.0",
2222
"gatsby-plugin-offline": "^4.8.0",
23-
"gatsby-plugin-sass": "^4.8.0",
23+
"gatsby-plugin-sass": "^5.9.0",
2424
"gatsby-plugin-sharp": "^3.8.0",
2525
"gatsby-remark-copy-linked-files": "^4.5.0",
2626
"gatsby-remark-images": "^5.5.0",
@@ -30,7 +30,6 @@
3030
"js-search": "^2.0.0",
3131
"lodash": "^4.17.21",
3232
"marked": "^2.0.0",
33-
"node-sass": "^6.0.1",
3433
"prism-react-renderer": "^1.2.0",
3534
"prop-types": "^15.7.2",
3635
"react": "^17.0.2",
@@ -40,6 +39,7 @@
4039
"react-images": "^1.2.0-beta.7",
4140
"react-live": "^2.2.3",
4241
"react-modal-image": "^2.5.0",
42+
"sass": "^1.49.9",
4343
"unist-util-visit": "^2.0.3",
4444
"use-dark-mode": "^2.3.1",
4545
"uuid": "^7.0.3"

0 commit comments

Comments
 (0)