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

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': ''
// }
// }
// }
// }
}