Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f1b1f351
authored
2020-12-30 16:43:14 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并代码
1 parent
523e3637
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
vue.config.js
vue.config.js
View file @
f1b1f35
...
...
@@ -5,6 +5,7 @@ let Timestamp = new Date().getTime();
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
const
UglifyJsPlugin
=
require
(
"uglifyjs-webpack-plugin"
);
module
.
exports
=
{
publicPath
:
'./'
,
...
...
@@ -13,6 +14,7 @@ module.exports = {
config
.
resolve
.
alias
.
set
(
'@'
,
resolve
(
'src'
))
.
set
(
'@api'
,
resolve
(
'src/api'
))
.
set
(
'@assets'
,
resolve
(
'src/assets'
))
.
set
(
'@mixins'
,
resolve
(
'src/mixins'
))
.
set
(
'@store'
,
resolve
(
'src/store'
))
.
set
(
'@libs'
,
resolve
(
'src/libs'
))
...
...
@@ -30,8 +32,17 @@ module.exports = {
filename
:
`js/[name].
${
Timestamp
}
.js`
,
chunkFilename
:
`js/[name].
${
Timestamp
}
.js`
},
// plugins: [
plugins
:
[
// 去除console和debugger
// new UglifyJsPlugin({
// uglifyOptions: {
// compress: {
// drop_console: true,
// drop_debugger: true,
// },
// },
// parallel: true,
// }),
// new FileManagerPlugin({ //初始化 filemanager-webpack-plugin 插件实例
// onEnd: {
// mkdir: ['./zip','./dist'], //初始化生产zip和dist文件夹
...
...
@@ -40,17 +51,19 @@ module.exports = {
// ]
// }
// })
//
]
]
},
devServer
:
{
host
:
"1
27.0.0.
1"
,
host
:
"1
92.168.2.6
1"
,
port
:
8008
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
"/api"
:
{
//target: process.env.VUE_APP_api, //巍巍
target
:
process
.
env
.
VUE_APP_api1
,
//本地
// target: 'https://192.168.2.119:8006', //泽平
// target: process.env.VUE_APP_api1, //本地
target
:
process
.
env
.
VUE_APP_api
,
//赵千
// target: process.env.VUE_APP_api4, //赵千
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/"
,
...
...
Please
register
or
sign in
to post a comment