Commit 6f8a4e58 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Fix creation of the abovethefold directory and wrong run order of this task

parent 952dde0e
......@@ -63,7 +63,6 @@ module.exports = class Css extends Task {
return new Promise(async resolve => {
let dependentTasks = [
this._svg(),
this._abovethefold()
];
await Promise.all(dependentTasks);
const files = await globby([
......@@ -75,6 +74,10 @@ module.exports = class Css extends Task {
compilations.push(this._compile(file, this._getOutputPath(file)));
});
await Promise.all(compilations);
dependentTasks = [
this._abovethefold(),
];
await Promise.all(dependentTasks);
resolve();
});
......@@ -270,7 +273,7 @@ module.exports = class Css extends Task {
compress: false
});
let distDirectory = this._getFullPath(this._config.abovethefold.dest);
let distDirectory = this._config.abovethefold.dest;
if (!fs.existsSync(distDirectory)) {
console.log(`${distDirectory} 'does not exist. Create now!'`);
fs.mkdirSync(distDirectory);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment