Skip to content

Commit

Permalink
Merge pull request #25 from ChrisCindy/fix/resolve-sass-loader
Browse files Browse the repository at this point in the history
fix: resolve sass-loader to avoid phantom dependencies
  • Loading branch information
rlamana committed Feb 24, 2023
2 parents f2b9238 + acef092 commit 7ce5293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus-plugin-sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ module.exports = function(_, {id, ...options}) {
importLoaders: 2,
sourceMap: !isProd,
}), {
loader: 'sass-loader',
loader: require.resolve('sass-loader'),
options: options || {}
}
]
}, {
use: [
...getStyleLoaders(isServer), {
loader: 'sass-loader',
loader: require.resolve('sass-loader'),
options: options || {}
}
]
Expand Down

0 comments on commit 7ce5293

Please sign in to comment.