diff options
Diffstat (limited to 'vue.config.js')
-rw-r--r-- | vue.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vue.config.js b/vue.config.js index 1e17def0..53dc6141 100644 --- a/vue.config.js +++ b/vue.config.js @@ -55,6 +55,8 @@ module.exports = { const envName = process.env.VUE_APP_ENV_NAME; const hasCustomStore = process.env.CUSTOM_STORE === 'true' ? true : false; const hasCustomRouter = process.env.CUSTOM_ROUTER === 'true' ? true : false; + const hasCustomAppNav = + process.env.CUSTOM_APP_NAV === 'true' ? true : false; if (process.env.NODE_ENV === 'production') { config.plugins.push( @@ -73,6 +75,12 @@ module.exports = { // If env has custom router, resolve router module in src/main.js config.resolve.alias['./router$'] = `./env/router/${envName}.js`; } + if (hasCustomAppNav) { + // If env has custom AppNavigation, resolve AppNavigationMixin module in src/components/AppNavigation/AppNavigation.vue + config.resolve.alias[ + './AppNavigationMixin$' + ] = `@/env/components/AppNavigation/${envName}.js`; + } } }, chainWebpack: config => { |