Skip to content

Commit

Permalink
Merge pull request #11 from roydukkey/master
Browse files Browse the repository at this point in the history
Remove `node-sass` dep to allow configuring either `sass` or `node-sass`
  • Loading branch information
rlamana authored May 3, 2021
2 parents 8c87023 + 3fe8414 commit 72120a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ Provides support for SASS/SCSS to Docusaurus v2.
# Installation

```sh
yarn add docusaurus-plugin-sass
yarn add docusaurus-plugin-sass sass
```

`sass-loader` requires you to install either [Dart Sass](https://github.com/sass/dart-sass) or [Node Sass](https://github.com/sass/node-sass) on your own (more documentation can be found at [`sass-loader`](https://github.com/webpack-contrib/sass-loader#getting-started)).

# How to use

1. Include the plugin in your `docusaurus.config.js` file.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "Docusaurus plugin to provide support for SASS/SCSS",
"main": "docusaurus-plugin-sass.js",
"dependencies": {
"node-sass": "^4.13.1",
"sass-loader": "^10.1.1"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0"
"@docusaurus/core": "^2.0.0",
"sass": "^1.30.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 72120a6

Please sign in to comment.