SCSS files need to be saved as .css

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-02-28 10:23:13 -08:00
parent 2310f80ef3
commit 695637c3e7
2 changed files with 12 additions and 2 deletions

View File

@ -42,8 +42,7 @@ module.exports = exports = class File {
this.basename = basename; // index.ext, fileA.ext, fileB.ext
this.ext = file.ext;
this.out = path.join(this.base, `${this.name}${this.ext}`);
this.url = path.join(this.dir, `${this.name}${this.ext}`);
this._out();
this.serializable = [
'kind',
@ -69,6 +68,11 @@ module.exports = exports = class File {
return dir;
}
_out () {
this.out = path.join(this.base, `${this.name}${this.ext}`);
this.url = path.join(this.dir, `${this.name}${this.ext}`);
}
load () {}
tasks () {

View File

@ -31,6 +31,12 @@ class Sass extends File {
return dir;
}
_out () {
this.ext = '.css';
super._out();
}
async load (prod) {
let contents = (await readFile(this.input).catch(() => null)).toString('utf8');