| | |
| | | entry: path, |
| | | template: 'public/index.html', |
| | | title: chunk == 'desktop/index' ? 'SmartAI' : chunk, |
| | | chunks: [chunk_vendor, 'chunk-common', chunk], |
| | | faviconPath: "favicon.png" |
| | | chunks: [chunk_vendor, 'chunk-common', chunk] |
| | | } |
| | | if (chunk != 'index') { |
| | | pages[chunk].filename = 'view/' + chunk + '.html' |
| | |
| | | }, |
| | | productionSourceMap: false, |
| | | filenameHashing: false, |
| | | pwa: { |
| | | iconPaths: { |
| | | favicon32: 'favicon.ico', |
| | | favicon16: 'favicon.ico' |
| | | } |
| | | }, |
| | | devServer: { |
| | | proxy: { |
| | | '/track': { |
| | |
| | | changeOrigin: true, |
| | | }, |
| | | "/data/api-v/app/findAllApp": { |
| | | target: '/', |
| | | // target: 'http://localhost:8080/', |
| | | // target: '/', |
| | | target: 'http://localhost:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/data/api-v/app/findAllApp': 'apps.json' |