## 报错 Invalid options in vue.config.js: "baseUrl" is not allowed
vue3.0 version of execution npm run build
will be givenInvalid options in vue.config.js: "baseUrl" is not allowed
This is because vue cli3.3 abolished after baseUrl
, you need to use after thispublicPath
### error code:
module.exports ={
baseUrl: process.env.NODE_ENV === 'production'
? './'
: '/'
}
### after correction:
module.exports ={
BASE_URL: process.env.NODE_ENV === 'production'
? './'
: '/'
}