-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
68 lines (62 loc) · 1.68 KB
/
vue.config.js
File metadata and controls
68 lines (62 loc) · 1.68 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
// Disable ESLint during build to avoid eslint-plugin-vue / parser compatibility issues
lintOnSave: false,
chainWebpack (config) {
const dxJson = /[\\/]Data[\\/]example[\\/]dx[\\/].*\.json$/
config.module
.rule('json')
.exclude.add(dxJson)
config.module
.rule('example-dx-json-raw')
.enforce('pre')
.test(dxJson)
.type('javascript/auto')
.use('raw-loader')
.loader('raw-loader')
},
// Deprecations: we fixed global built-ins (rgba→color) in our partials; import/legacy-js-api come from Vue CLI/Vuetify
css: {
loaderOptions: {
sass: {
sassOptions: {
quietDeps: true,
silenceDeprecations: ['import', 'legacy-js-api'],
},
},
scss: {
sassOptions: {
quietDeps: true,
silenceDeprecations: ['import', 'legacy-js-api'],
},
},
},
},
configureWebpack: {
devtool: 'source-map',
plugins: [
new CopyWebpackPlugin([
{ from: path.resolve(__dirname, 'src/Prompt'), to: 'prompt' },
]),
],
},
devServer: {
port: 8081,
disableHostCheck: true,
// Proxy API and Socket to Neptune_2026 backend (run backend on port 8080 for local demo)
proxy: {
'/api': { target: 'http://localhost:8080', changeOrigin: true },
'/socket.io': { target: 'http://localhost:3000', ws: true }
}
},
transpileDependencies: ['vue-world-map', 'vuetify'],
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: false,
},
},
}