mirror of https://github.com/vizality/vizality
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
388 B
22 lines
388 B
const { promises: { readFile } } = require('fs');
|
|
|
|
const Compiler = require('./Compiler');
|
|
|
|
/**
|
|
* CSS compiler
|
|
* @extends {Compiler}
|
|
*/
|
|
module.exports = class CSS extends Compiler {
|
|
async compile () {
|
|
const css = await readFile(this.file, 'utf8');
|
|
if (this.watcherEnabled) {
|
|
this._watchFiles();
|
|
}
|
|
return css;
|
|
}
|
|
|
|
computeCacheKey () {
|
|
return null;
|
|
}
|
|
};
|