From bf3f72e24eda8c094d9e121f401fea20d0cc4dca Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Sat, 31 Jul 2021 21:26:41 +0100 Subject: [PATCH] fix(kit): default config value in dev/prod mode (#405) --- packages/kit/src/config/schema/_app.ts | 2 +- packages/kit/src/config/schema/build.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kit/src/config/schema/_app.ts b/packages/kit/src/config/schema/_app.ts index f5736929cc..419d15701f 100644 --- a/packages/kit/src/config/schema/_app.ts +++ b/packages/kit/src/config/schema/_app.ts @@ -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') } } }, diff --git a/packages/kit/src/config/schema/build.ts b/packages/kit/src/config/schema/build.ts index 693120d7cd..c0f2810773 100644 --- a/packages/kit/src/config/schema/build.ts +++ b/packages/kit/src/config/schema/build.ts @@ -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',