Last active
January 20, 2021 10:30
-
-
Save BartoszBilejczyk/3da7a382e58c5ce1d686f247f6dc6d86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// config/product-specific/index.js | |
const config = require(`@/config/product-specific/${process.env.VUE_APP_DEV_PRODUCT}`); | |
export default config.default; | |
// App.vue | |
import config from '@/config/product-specific'; | |
export default defineComponent({ | |
setup() { | |
const products = computed(() => config.products); | |
return { | |
products | |
}; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment