This commit is contained in:
2021-09-22 13:30:43 +08:00
parent e444edb7ee
commit 9279ebb0f9
5 changed files with 36 additions and 14 deletions

6
.env
View File

@@ -1,6 +0,0 @@
NODE_ENV=development
BASE_URL=/
VUE_APP_TITLE=Jason.Chen
VUE_APP_API_URL=http://api.dsp-test.shangkelian.cn/api
VUE_APP_USERNAME=
VUE_APP_PASSWORD=

View File

@@ -1,6 +0,0 @@
NODE_ENV=development
BASE_URL=/
VUE_APP_TITLE=Jason.Chen
VUE_APP_API_URL=http://api.dsp-test.shangkelian.cn/api
VUE_APP_USERNAME=15555555555
VUE_APP_PASSWORD=123123

8
.env.example Normal file
View File

@@ -0,0 +1,8 @@
NODE_ENV=production
BASE_URL=/
VUE_APP_TITLE=Jason.Chen
VUE_APP_API_URL=/api
VUE_APP_USERNAME=
VUE_APP_PASSWORD=

3
.gitignore vendored
View File

@@ -7,6 +7,9 @@ node_modules
.env.local
.env.*.local
.env
.env.development
# Log files
npm-debug.log*
yarn-debug.log*

View File

@@ -1,6 +1,19 @@
module.exports = {
assetsDir: 'static', // 配置js、css静态资源二级目录的位置
const path = require('path')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
configureWebpack: {
resolve: {
alias: {
'@': resolve('src')
}
}
},
assetsDir: 'static', // 配置js、css静态资源二级目录的位置
outputDir: 'dist',
css: {
loaderOptions: {
less: {
@@ -8,4 +21,14 @@ module.exports = {
}
}
}
// devServer: {
// proxy: {
// '/api': {
// target: '',
// pathRewrite: {
// '^/api': ''
// }
// }
// }
// }
}