From 38f948d5bef331d7dc4555039e16f00f639218a5 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期一, 24 六月 2024 13:19:31 +0800 Subject: [PATCH] 标题设置 --- config/index.js | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/config/index.js b/config/index.js index 782f223..235e808 100644 --- a/config/index.js +++ b/config/index.js @@ -3,7 +3,9 @@ // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') - +function resolve(dir) { + return path.join(__dirname, dir) +} module.exports = { dev: { @@ -20,9 +22,12 @@ } }, '/api_test': { // 娴嬭瘯鐜 - target: 'http://192.168.31.69:8080', + // target: 'http://192.168.31.69:8080', + target: 'https://test6.phiskin.com/', // 瀵煎尰 + // target: 'https://serv3.phiskin.com/', // 瀵煎尰绾夸笂 + // target: 'https://test6.phiskin.com/phi_appt/', // 鏂伴绾his鍚庡彴 // target: 'http://hymctest.huoxiongit.com/',// 杩欎釜鏄綘鏈嶅姟鍣ㄥ紑鍚殑鎺ュ彛 - changeOrigin: true,// 鏄惁璺ㄥ煙 + changeOrigin: true, // 鏄惁璺ㄥ煙 pathRewrite: { '^/api_test': '' } @@ -82,5 +87,24 @@ // `npm run build --report` // Set to `true` or `false` to always turn it on or off bundleAnalyzerReport: process.env.npm_config_report + }, + // 閰嶇疆浣跨敤stylus鍏ㄥ眬鍙橀噺 + chainWebpack: config => { + // set svg-sprite-loader + config.module + .rule('svg') + .exclude.add(resolve('src/icons')) + .end() + config.module + .rule('icons') + .test(/\.svg$/) + .include.add(resolve('src/icons')) + .end() + .use('svg-sprite-loader') + .loader('svg-sprite-loader') + .options({ + symbolId: 'icon-[name]' + }) + .end() } } -- Gitblit v1.8.0