JeecgBoot 2.3 里程碑版本发布,支持微服务和单体自由切换、提供新行编辑表格JVXETable

This commit is contained in:
zhangdaiscott
2020-09-13 18:23:23 +08:00
parent 65d1e6a879
commit 7f30a186df
533 changed files with 187550 additions and 36942 deletions

View File

@@ -14,8 +14,14 @@ module.exports = {
*/
// 如果你不需要生产环境的 source map可以将其设置为 false 以加速生产环境构建。
productionSourceMap: false,
// 多入口配置
// pages: {
// index: {
// entry: 'src/main.js',
// template: 'public/index.html',
// filename: 'index.html',
// }
// },
//打包app时放开该配置
//publicPath:'./',
configureWebpack: config => {
@@ -38,7 +44,7 @@ module.exports = {
//生产环境开启js\css压缩
if (process.env.NODE_ENV === 'production') {
config.plugin('compressionPlugin').use(new CompressionPlugin({
test: /\.js$|.\css|.\less/, // 匹配文件名
test: /\.(js|css|less)$/, // 匹配文件名
threshold: 10240, // 对超过10k的数据压缩
deleteOriginalAssets: false // 不删除源文件
}))
@@ -51,6 +57,22 @@ module.exports = {
.use()
.loader('file-loader')
.end()
// 编译某些npm包里的es6代码
// TODO 导致online js lib启动报错
// config.module
// // .rule('vxe')
// // .test(/\.js$/)
// // .use()
// // .loader('babel-loader')
// // .options({
// // include: [
// // resolve('node_modules/vxe-table'),
// // resolve('node_modules/vxe-table-plugin-antd'),
// // ]
// // })
// // .end()
},
css: {