ci: fix index.html moving

This commit is contained in:
Evan You
2018-08-06 22:17:31 -04:00
parent 12e57f73ac
commit ec508c7004

View File

@@ -94,7 +94,7 @@ module.exports = (api, options) => {
if (isProd) {
// handle indexPath
if (options.indexPath) {
if (options.indexPath !== 'index.html') {
// why not set filename for html-webpack-plugin?
// 1. It cannot handle absolute paths
// 2. Relative paths causes incorrect SW manifest to be generated (#2007)