This commit is contained in:
parent
70cbf9e799
commit
e4c9ad6f65
|
|
@ -5,8 +5,9 @@
|
|||
"author": "Pan <panfree23@gmail.com>",
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"prod": "vue-cli-service serve --mode production",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview",
|
||||
"new": "plop",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
* In most cases please use '/' !!!
|
||||
* Detail: https://cli.vuejs.org/config/#publicpath
|
||||
*/
|
||||
publicPath: '/',
|
||||
publicPath: process.env.ENV === 'production' ? '/zhgd-web/' : '/',
|
||||
outputDir: 'dist',
|
||||
assetsDir: 'static',
|
||||
lintOnSave: false,
|
||||
|
|
@ -35,8 +35,10 @@ module.exports = {
|
|||
open: true,
|
||||
proxy: {
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `http://10.40.92.106:18080/zhgd`,
|
||||
// target: `http://10.40.92.42:18080/zhgd`,
|
||||
// target: `http://10.40.92.33:18080/zhgd`,
|
||||
target: `http://192.168.0.7:18080/zhgd`,
|
||||
// target: `http://10.40.92.44:18080/zhgd`,
|
||||
// target: `http://10.40.92.106:18080/zhgd`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
|
@ -97,6 +99,12 @@ module.exports = {
|
|||
})
|
||||
.end()
|
||||
|
||||
// config.module
|
||||
// .rule('css')
|
||||
// .test(/\.css$/)
|
||||
// .use('css-loader')
|
||||
// .loader('css-loader')
|
||||
|
||||
config
|
||||
.when(process.env.NODE_ENV !== 'development',
|
||||
config => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue