-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
45 lines (42 loc) · 941 Bytes
/
vue.config.js
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
const AddAssetHtmlPlugin = require('add-asset-html-webpack-plugin');
const venderList = [
'js/Init.js',
'deflate/pako.min.js',
'deflate/base64.js',
'jscolor/jscolor.js',
'sanitizer/sanitizer.min.js',
'mxgraph/javascript/mxClient.min.js',
'js/EditorUi.js',
'js/Editor.js',
'config/neList.js',
'js/Sidebar.js',
'js/Graph.js',
'js/Format.js',
'js/Shapes.js',
'js/Actions.js',
'js/Menus.js',
'js/Toolbar.js',
'js/Dialogs.js',
];
const assetHtmlList = venderList.map((name) => ({
filepath: require.resolve(name.startsWith('mxgraph') ? name : `./src/core/graphEdit/${name}`),
name: '[name]_[hash]',
}));
module.exports = {
publicPath: '/',
outputDir: 'dist',
lintOnSave: true,
configureWebpack: {
plugins: [
new AddAssetHtmlPlugin(assetHtmlList),
],
},
devServer: {
open: true,
proxy: {
'/txo': {
target: 'http://10.1.193.28:10012/',
},
},
},
};