-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
39 lines (35 loc) · 877 Bytes
/
vue.config.js
File metadata and controls
39 lines (35 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const { defineConfig } = require('@vue/cli-service')
const EslintWebpackPlugin = require('eslint-webpack-plugin')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
proxy: {
"^/api": {
target: 'http://localhost:8080',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
},
},
},
},
chainWebpack: config => {
config.plugins.delete('eslint')
config.plugin('eslint').use(EslintWebpackPlugin, [{
extensions: undefined,
context: __dirname,
cwd: __dirname,
configType: 'flat',
failOnError: true,
formatter: 'stylish',
}])
},
// make this app "location agnostic"
publicPath: './',
pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
}
}
})