mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-28 07:54:20 +00:00
fix(kit): default config value in dev/prod mode (#405)
This commit is contained in:
parent
5a1ccec61f
commit
bf3f72e24e
@ -13,7 +13,7 @@ export default {
|
|||||||
* @see [vue@3 Documentation](https://v3.vuejs.org/api/application-config.html)
|
* @see [vue@3 Documentation](https://v3.vuejs.org/api/application-config.html)
|
||||||
*/
|
*/
|
||||||
config: {
|
config: {
|
||||||
silent: { $resolve: (val, get) => val ?? get('dev') },
|
silent: { $resolve: (val, get) => val ?? !get('dev') },
|
||||||
performance: { $resolve: (val, get) => val ?? get('dev') }
|
performance: { $resolve: (val, get) => val ?? get('dev') }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -198,7 +198,7 @@ export default {
|
|||||||
imgUrl: { esModule: false, limit: 1000 },
|
imgUrl: { esModule: false, limit: 1000 },
|
||||||
pugPlain: {},
|
pugPlain: {},
|
||||||
vue: {
|
vue: {
|
||||||
productionMode: { $resolve: (val, get) => val ?? get('dev') },
|
productionMode: { $resolve: (val, get) => val ?? !get('dev') },
|
||||||
transformAssetUrls: {
|
transformAssetUrls: {
|
||||||
video: 'src',
|
video: 'src',
|
||||||
source: 'src',
|
source: 'src',
|
||||||
|
Loading…
Reference in New Issue
Block a user