|
|
@@ -1,7 +1,6 @@
|
|
|
const path = require('path')
|
|
|
const isProdMode = Object.is(process.env.NODE_ENV, 'production')
|
|
|
const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://www.usoftmall.com/' : 'http://192.168.253.60:9090/platform-b2c/')
|
|
|
-const webpack = require('webpack')
|
|
|
|
|
|
module.exports = {
|
|
|
router: {
|
|
|
@@ -20,11 +19,7 @@ module.exports = {
|
|
|
{ hid: 'description', name: 'description', content: '优软商城(usoftmall.com)是中国领先的IC电子元器件现货采购交易网上商城,提供上千万种电子元器件现货采购交易,采购电子元器件就上优软商城!' }
|
|
|
],
|
|
|
link: [
|
|
|
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
|
|
- { rel: 'stylesheet', type: 'text/css', href: 'https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css' },
|
|
|
- { rel: 'stylesheet', type: 'text/css', href: 'https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css' },
|
|
|
- { rel: 'stylesheet', type: 'text/css', href: 'https://cdn.bootcss.com/element-ui/1.3.7/theme-default/index.css' },
|
|
|
- { rel: 'stylesheet', type: 'text/css', href: 'https://at.alicdn.com/t/font_0d1jjt5tukcblnmi.css' }
|
|
|
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
|
]
|
|
|
},
|
|
|
/*
|
|
|
@@ -79,10 +74,10 @@ module.exports = {
|
|
|
css: [
|
|
|
/* {
|
|
|
src: 'font-awesome/css/font-awesome.css'
|
|
|
- }, */{src: '~assets/scss/app.scss', lang: 'scss'},
|
|
|
- {
|
|
|
+ }, */{src: '~assets/scss/app.scss', lang: 'scss'}
|
|
|
+ /* {
|
|
|
src: 'swiper/dist/css/swiper.css'
|
|
|
- } /*, {
|
|
|
+ } */ /* , {
|
|
|
src: 'element-ui/lib/theme-default/index.css'
|
|
|
} */
|
|
|
],
|
|
|
@@ -111,5 +106,5 @@ module.exports = {
|
|
|
ssr: false
|
|
|
}],
|
|
|
/* TODO 暂时代理到商城测试版,之后再做出调整 */
|
|
|
- proxyTable: ['/api/**', '/search/**', '/user/**', '/login/**', '/logout/**', '/static/**', '/vendor**', '/user**', '/trade/**', '/recommendation/**', '/store-service/**', '/basic/**', '/logout**', '/operation/**', '/help**', '/product**', '/platform-b2c**', '/store**']
|
|
|
+ proxyTable: ['/api/**', '/search/**', '/user/**', '/login/**', '/register/**', '/logout/**', '/static/**', '/vendor**', '/user**', '/trade/**', '/recommendation/**', '/store-service/**', '/basic/**', '/logout**', '/operation/**', '/help**', '/product**', '/store**', '/order/proxy**', '/report/**', '/store/**#/**', '/kdn/**', '/product/**Submit', '/admin**']
|
|
|
}
|