mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 08:38:57 -06:00
chore: fix typo (#2321) [ci skip]
This commit is contained in:
committed by
Haoqun Jiang
parent
c9cc225866
commit
c73d9673dc
@@ -257,7 +257,7 @@ module.exports = class Service {
|
||||
|
||||
loadUserOptions () {
|
||||
// vue.config.js
|
||||
let fileConfig, pkgConfig, resolved, resovledFrom
|
||||
let fileConfig, pkgConfig, resolved, resolvedFrom
|
||||
const configPath = (
|
||||
process.env.VUE_CLI_SERVICE_CONFIG_PATH ||
|
||||
path.resolve(this.context, 'vue.config.js')
|
||||
@@ -299,13 +299,13 @@ module.exports = class Service {
|
||||
)
|
||||
}
|
||||
resolved = fileConfig
|
||||
resovledFrom = 'vue.config.js'
|
||||
resolvedFrom = 'vue.config.js'
|
||||
} else if (pkgConfig) {
|
||||
resolved = pkgConfig
|
||||
resovledFrom = '"vue" field in package.json'
|
||||
resolvedFrom = '"vue" field in package.json'
|
||||
} else {
|
||||
resolved = this.inlineOptions || {}
|
||||
resovledFrom = 'inline options'
|
||||
resolvedFrom = 'inline options'
|
||||
}
|
||||
|
||||
// normalize some options
|
||||
@@ -327,7 +327,7 @@ module.exports = class Service {
|
||||
// validate options
|
||||
validate(resolved, msg => {
|
||||
error(
|
||||
`Invalid options in ${chalk.bold(resovledFrom)}: ${msg}`
|
||||
`Invalid options in ${chalk.bold(resolvedFrom)}: ${msg}`
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user