mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 08:38:57 -06:00
fix(cli-service): fix polyfill injection when overriding entry with the CLI option
Fixes #5508
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user