Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jul 30, 2021
1 parent e75660a commit 3be57a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin-sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ const sass = require('sass');
class SassResource extends ResourceInterface {
constructor(compilation, options) {
super(compilation, options);
this.extensions = ['.scss', '.sass'];
this.extensions = ['.scss'];
this.contentType = 'text/css';
}

async serve(url) {
return new Promise(async (resolve, reject) => {
try {
// https://sass-lang.com/documentation/js-api
const result = sass.renderSync({ file: url });

resolve({
Expand Down

0 comments on commit 3be57a2

Please sign in to comment.