1234567891011121314151617181920212223242526272829303132333435 |
- const path = require('path')
- function resolve(dir) {
- return path.join(__dirname, dir)
- }
- const proxy_port = 8000
- module.exports = {
- devServer: {
- proxy: {
- [process.env.VUE_APP_BASE_API]: {
- target: `http://localhost:${proxy_port}`,
- changeOrigin: true
- }
- }
- },
- transpileDependencies: ['vuetify'],
- pluginOptions: {
- i18n: {
- locale: 'en',
- fallbackLocale: 'en',
- localeDir: 'locales',
- enableInSFC: false
- }
- },
- chainWebpack: (config) => {
- config.resolve.alias
- .set('@$', resolve('src'))
- .set('@views', resolve('src/views'))
- }
- }
|