fix(cli-service): fix polyfill injection when overriding entry with the CLI option

Fixes #5508
This commit is contained in:
dtcz
2020-06-02 21:29:28 +08:00
committed by GitHub
parent 1d0deded94
commit dcfb0bdbc9

View File

@@ -40,7 +40,9 @@ module.exports = (api, args, options) => {
// respect inline entry
if (args.entry && !options.pages) {
rawConfig.entry = { app: api.resolve(args.entry) }
const entry = api.resolve(args.entry)
rawConfig.entry = { app: entry }
process.env.VUE_CLI_ENTRY_FILES = JSON.stringify([entry])
}
return rawConfig