diff --git a/packages/@vue/cli-service/lib/config/app.js b/packages/@vue/cli-service/lib/config/app.js index c262fb9b3..2bed9f9af 100644 --- a/packages/@vue/cli-service/lib/config/app.js +++ b/packages/@vue/cli-service/lib/config/app.js @@ -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)