Template keys fix.
This commit is contained in:
parent
f3382488fe
commit
55f2d5cc14
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ module.exports = function(env) {
|
||||||
process: async (task, vars) => {
|
process: async (task, vars) => {
|
||||||
let data = fs.readFileSync(pathJoin(env.source, task.source));
|
let data = fs.readFileSync(pathJoin(env.source, task.source));
|
||||||
|
|
||||||
if(typeof task.vars === 'string' && task.vars in vars)
|
if(typeof task.template === 'string' && task.template in vars)
|
||||||
data = strtr(data, vars[task.vars]);
|
data = strtr(data, vars[task.template]);
|
||||||
|
|
||||||
if(!env.debug)
|
if(!env.debug)
|
||||||
data = await htmlminify(data, MINIFY_OPTS);
|
data = await htmlminify(data, MINIFY_OPTS);
|
||||||
|
|
Loading…
Reference in a new issue