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
| /*
| * @Author: weilGit
| * @Date: 2025-07-07 11:00:16
| * @LastEditors: weilGit
| * @LastEditTime: 2025-07-09 18:52:10
| * @Description: XXX
| * @FilePath: \screen_v2\vue.config.js
| */
| const {
| defineConfig
| } = require("@vue/cli-service");
| const path = require('path')
|
| function resolve(dir) {
| return path.join(__dirname, dir)
| }
| const name = 'ztt'
|
| module.exports = defineConfig({
| publicPath: process.env.NODE_ENV === 'development'?'/':'/screen',
| // outputDir: 'dist',
| // assetsDir: 'static',
| // lintOnSave: process.env.NODE_ENV === 'development',
| productionSourceMap: false,
| transpileDependencies: true,
| devServer: {
| port: 8993,
| open: true,
| // Local websocket proxy (dev only) so local access can reach backend.
| // Production build uses the real backend address directly (see wsUrl in home/index.vue).
| proxy: {
| '/admin': {
| target: 'http://1.15.17.182:9031',
| ws: true,
| changeOrigin: true,
| },
| },
| },
| configureWebpack: {
| name: name,
| resolve: {
| alias: {
| '@': resolve('src')
| }
| },
| plugins: []
| },
| css: {
| // loaderOptions: {
| // sass: {
| // additionalData: `@import "@/styles/utils.scss";`
| // }
| // }
| }
| });
|
|