build: 修改前端打包配置

This commit is contained in:
CaptainB 2022-10-10 18:35:38 +08:00
parent 931f31552b
commit c960ed3ba9
7 changed files with 14 additions and 13 deletions

View File

@ -6,7 +6,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4004,
client: {
@ -46,7 +46,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -6,6 +6,7 @@ function resolve(dir) {
}
module.exports = {
productionSourceMap: false,
devServer: {
port: 3000,
client: {
@ -24,7 +25,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -6,7 +6,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4003,
client: {
@ -41,7 +41,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -6,7 +6,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4002,
client: {
@ -29,7 +29,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -6,7 +6,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4006,
client: {
@ -29,7 +29,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -6,7 +6,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4001,
client: {
@ -29,7 +29,7 @@ module.exports = {
},
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')

View File

@ -9,7 +9,7 @@ function resolve(dir) {
}
module.exports = {
// transpileDependencies: true,
productionSourceMap: false,
devServer: {
port: 4005,
client: {
@ -50,7 +50,7 @@ module.exports = {
}
},
configureWebpack: {
devtool: 'source-map',
devtool: 'cheap-module-source-map',
resolve: {
alias: {
'@': resolve('src')