Created
February 1, 2019 07:33
-
-
Save AbraXabra/1066abb32ac93d5898980acbc5569e9b to your computer and use it in GitHub Desktop.
conf
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
const path = require('path') | |
module.exports = { | |
chainWebpack: config => { | |
const apiClient = process.env.VUE_APP_API_CLIENT // mock or server | |
config.resolve.alias.set( | |
'api-client', | |
path.resolve(__dirname, `src/api/${apiClient}`) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment