forked from UzTech/Vue3-typescript-demo
env
This commit is contained in:
6
.env
6
.env
@@ -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=
|
||||
@@ -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
8
.env.example
Normal 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
3
.gitignore
vendored
@@ -7,6 +7,9 @@ node_modules
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
.env
|
||||
.env.development
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
|
||||
@@ -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': ''
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user