We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092f74e commit 2ad5ae1Copy full SHA for 2ad5ae1
1 file changed
src/sass-loader.js
@@ -23,7 +23,10 @@ export default {
23
test: /\.s[ac]ss$/,
24
process({ code }) {
25
return new Promise((resolve, reject) => {
26
- const sass = importCwd('node-sass')
+ const sass = importCwd.silent('node-sass') || importCwd.silent('sass')
27
+ if (!sass) {
28
+ throw new Error(`You need to install either node-sass or sass in order to process Sass files`)
29
+ }
30
const render = pify(sass.render.bind(sass))
31
return workQueue.add(() =>
32
render({
0 commit comments