From d87e465e82f94e1d50ec4ab0ab225a88734b60cb Mon Sep 17 00:00:00 2001 From: laotan Date: Tue, 20 Jun 2017 16:07:04 +0800 Subject: [PATCH] revert incorrect replace --- lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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