Commit db0b86c6 authored by Stefan Galinski's avatar Stefan Galinski

[BUGFIX] No image optim in prod mode, causes merge conflicts

parent 132b8cf5
......@@ -20,12 +20,14 @@ module.exports = class Build extends Task {
await Promise.all(this._config.extensions.map(async _extension => {
settings.setExtension(_extension);
let tasks = [];
let task = new images({embedded: true});
tasks.push(task.run());
task = new css({embedded: true});
let task = new css({embedded: true});
tasks.push(task.run());
task = new js({embedded: true});
tasks.push(task.run());
if (this._config.mode !== 'prod') {
task = new images({embedded: true});
tasks.push(task.run());
}
await Promise.all(tasks);
}));
resolve();
......
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