diff --git a/lib/build.js b/lib/build.js index acf8ad69bd..22a93e5103 100644 --- a/lib/build.js +++ b/lib/build.js @@ -138,7 +138,7 @@ async function buildFiles () { } function addAppTemplate () { - let templatePath = relative(this.buildDir, 'dist', 'index.html') + let templatePath = resolve(this.buildDir, 'dist', 'index.html') if (fs.existsSync(templatePath)) { this.appTemplate = _.template(fs.readFileSync(templatePath, 'utf8'), { interpolate: /{{([\s\S]+?)}}/g