var path = require('path'); module.exports = { // ESLint in the dev build dominated rebuild time (~28s of a 30s compile on this // codebase). Lint runs via `npm run lint` / your editor instead. lintOnSave: false, configureWebpack: { // Webpack 5 filesystem cache: cold start 20s -> ~1.6s on a warm cache. cache: { type: 'filesystem', buildDependencies: { config: [__filename] } } }, devServer: { proxy: { '^/rest': { //target: 'http://localhost:8082', target: 'https://v1.quant-ux.com', ws: true, changeOrigin: true }, '^/ai': { target: 'https://v1.quant-ux.com', ws: true, changeOrigin: true } } }, chainWebpack: config => { config.resolve.alias.set('src', path.resolve('src')) config.resolve.alias.set('assets', path.resolve('src/assets')) config.resolve.alias.set('components', path.resolve('src/components')) config.resolve.alias.set('dojo', path.resolve('src/dojo')) config.resolve.alias.set('common', path.resolve('src/common')) config.resolve.alias.set('vommond', path.resolve('src/vommond')) config.resolve.alias.set('views', path.resolve('src/views')) config.resolve.alias.set('canvas', path.resolve('src/canvas')) config.resolve.alias.set('page', path.resolve('src/page')) config.resolve.alias.set('user', path.resolve('src/user')) config.resolve.alias.set('core', path.resolve('src/core')) config.resolve.alias.set('dash', path.resolve('src/dash')) config.resolve.alias.set('public', path.resolve('src/public')) config.resolve.alias.set('services', path.resolve('src/services')) config.resolve.alias.set('nls', path.resolve('src/nls')) config.resolve.alias.set('themes', path.resolve('src/themes')) config.resolve.alias.set('export', path.resolve('src/export')) config.resolve.alias.set('examples', path.resolve('src/examples')) config.resolve.alias.set('help', path.resolve('src/help')) config.resolve.alias.set('player', path.resolve('src/player')) config.resolve.alias.set('style', path.resolve('src/style')) } }