mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
1.项目样式 scss 全部转换为 less,且移除了项目 node-sass 依赖;
2.online开发ButtonExpHandler is not defined #957; 3.关于打包后JS文件过大,导致加载缓慢的建议 #969
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
const path = require('path')
|
||||
|
||||
function resolve(dir) {
|
||||
function resolve (dir) {
|
||||
return path.join(__dirname, dir)
|
||||
}
|
||||
|
||||
@ -14,10 +14,10 @@ module.exports = {
|
||||
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
||||
productionSourceMap: false,
|
||||
|
||||
//打包app时放开该配置
|
||||
//publicPath:'./',
|
||||
// 打包app时放开该配置
|
||||
// publicPath:'./',
|
||||
configureWebpack: config => {
|
||||
//生产环境取消 console.log
|
||||
// 生产环境取消 console.log
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
|
||||
}
|
||||
@ -47,9 +47,9 @@ module.exports = {
|
||||
/* less 变量覆盖,用于自定义 ant design 主题 */
|
||||
'primary-color': '#1890FF',
|
||||
'link-color': '#1890FF',
|
||||
'border-radius-base': '4px',
|
||||
'border-radius-base': '4px'
|
||||
},
|
||||
javascriptEnabled: true,
|
||||
javascriptEnabled: true
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -57,21 +57,21 @@ module.exports = {
|
||||
devServer: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
/* '/api': {
|
||||
/* '/api': {
|
||||
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'/jeecg-boot': '' //默认所有请求都加了jeecg-boot前缀,需要去掉
|
||||
}
|
||||
},*/
|
||||
}, */
|
||||
'/jeecg-boot': {
|
||||
target: 'http://localhost:8080', //请求本地 需要jeecg-boot后台项目
|
||||
target: 'http://127.0.0.1:8080', // 请求本地 需要jeecg-boot后台项目
|
||||
ws: false,
|
||||
changeOrigin: true
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
lintOnSave: undefined
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user