revert incorrect replace

This commit is contained in:
laotan 2017-06-20 16:07:04 +08:00
parent b14cc1951a
commit d87e465e82

View File

@ -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