|
|
@@ -3,13 +3,13 @@ const path = require('path');
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
|
|
//http和https切换请修改这里,修改后需要重新运行npm run serve shish 2021.4.12
|
|
|
-const proxyTarget = 'http://api.shop.hzghd.com';
|
|
|
+const proxyTarget = 'http://api.shop.huaml.com';
|
|
|
|
|
|
function resolve(dir) {
|
|
|
return path.join(__dirname, dir);
|
|
|
}
|
|
|
|
|
|
-let hostUrl = 'https://img.hzghd.com/';
|
|
|
+let hostUrl = 'https://img.huaml.com/';
|
|
|
|
|
|
const cdn = {
|
|
|
dev: {
|
|
|
@@ -55,7 +55,6 @@ module.exports = {
|
|
|
import: '~@/assets/css/common.styl'
|
|
|
},
|
|
|
sass: {
|
|
|
- // additionalData: `@import "~@/assets/css/base.scss";`
|
|
|
prependData: `@import "~@/assets/css/base.scss";`
|
|
|
}
|
|
|
}
|
|
|
@@ -68,9 +67,9 @@ module.exports = {
|
|
|
compress: false,
|
|
|
overlay: {
|
|
|
warnings: false,
|
|
|
- errors: false
|
|
|
+ errors: true
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
proxy: {
|
|
|
'/dev': {
|
|
|
target: proxyTarget,
|
|
|
@@ -96,19 +95,18 @@ module.exports = {
|
|
|
// 移除 preload 插件
|
|
|
// config.plugins.delete('preload');
|
|
|
// svg
|
|
|
- config.module.rule('svg').uses.clear();
|
|
|
+ // config.module.rule('svg').uses.clear();
|
|
|
|
|
|
- config.module
|
|
|
- .rule('svg-sprite')
|
|
|
- .test(/.svg$/)
|
|
|
- .exclude.add(/node_modules/)
|
|
|
- .end()
|
|
|
- .use('svg-sprite-loader')
|
|
|
- .loader('svg-sprite-loader')
|
|
|
- .options({
|
|
|
- symbolId: '[name]',
|
|
|
- extract: false
|
|
|
- });
|
|
|
+ // config.module
|
|
|
+ // .rule('svg-sprite-loader')
|
|
|
+ // .test(/.svg$/)
|
|
|
+ // .exclude.add(/node_modules/)
|
|
|
+ // .end()
|
|
|
+ // .use('svg-sprite-loader')
|
|
|
+ // .loader('svg-sprite-loader')
|
|
|
+ // .options({
|
|
|
+ // symbolId: '[name]'
|
|
|
+ // });
|
|
|
|
|
|
// 去掉元素之间空格
|
|
|
config.module
|