fix(kit): default config value in dev/prod mode (#405)

This commit is contained in:
Xin Du (Clark) 2021-07-31 21:26:41 +01:00 committed by GitHub
parent 5a1ccec61f
commit bf3f72e24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export default {
* @see [vue@3 Documentation](https://v3.vuejs.org/api/application-config.html)
*/
config: {
silent: { $resolve: (val, get) => val ?? get('dev') },
silent: { $resolve: (val, get) => val ?? !get('dev') },
performance: { $resolve: (val, get) => val ?? get('dev') }
}
},

View File

@ -198,7 +198,7 @@ export default {
imgUrl: { esModule: false, limit: 1000 },
pugPlain: {},
vue: {
productionMode: { $resolve: (val, get) => val ?? get('dev') },
productionMode: { $resolve: (val, get) => val ?? !get('dev') },
transformAssetUrls: {
video: 'src',
source: 'src',