mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
SCSS files need to be saved as .css
This commit is contained in:
parent
2310f80ef3
commit
695637c3e7
@ -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 () {
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user