Commit 48445591 authored by 邓超's avatar 邓超

fix: 修改打包问题

parent e411f7fc
Pipeline #48934 passed with stages
in 17 minutes 24 seconds
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
const path = require('path'); const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackPwaManifest = require('webpack-pwa-manifest'); const WebpackPwaManifest = require('webpack-pwa-manifest');
const OfflinePlugin = require('offline-plugin'); // const OfflinePlugin = require('offline-plugin');
const { HashedModuleIdsPlugin } = require('webpack'); // const { HashedModuleIdsPlugin } = require('webpack');
const TerserPlugin = require('terser-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin'); const CompressionPlugin = require('compression-webpack-plugin');
...@@ -87,27 +87,27 @@ module.exports = require('./webpack.base.babel')({ ...@@ -87,27 +87,27 @@ module.exports = require('./webpack.base.babel')({
// Put it in the end to capture all the HtmlWebpackPlugin's // Put it in the end to capture all the HtmlWebpackPlugin's
// assets manipulations and do leak its manipulations to HtmlWebpackPlugin // assets manipulations and do leak its manipulations to HtmlWebpackPlugin
new OfflinePlugin({ // new OfflinePlugin({
relativePaths: false, // relativePaths: false,
publicPath: '/', // publicPath: '/',
appShell: '/', // appShell: '/',
// No need to cache .htaccess. See http://mxs.is/googmp, // // No need to cache .htaccess. See http://mxs.is/googmp,
// this is applied before any match in `caches` section // // this is applied before any match in `caches` section
excludes: ['.htaccess'], // excludes: ['.htaccess'],
caches: { // caches: {
main: [':rest:'], // main: [':rest:'],
// All chunks marked as `additional`, loaded after main section // // All chunks marked as `additional`, loaded after main section
// and do not prevent SW to install. Change to `optional` if // // and do not prevent SW to install. Change to `optional` if
// do not want them to be preloaded at all (cached only when first loaded) // // do not want them to be preloaded at all (cached only when first loaded)
additional: ['*.chunk.js'], // additional: ['*.chunk.js'],
}, // },
// Removes warning for about `additional` section usage // // Removes warning for about `additional` section usage
safeToUseOptionalCaches: true, // safeToUseOptionalCaches: true,
}), // }),
new CompressionPlugin({ new CompressionPlugin({
algorithm: 'gzip', algorithm: 'gzip',
...@@ -137,11 +137,11 @@ module.exports = require('./webpack.base.babel')({ ...@@ -137,11 +137,11 @@ module.exports = require('./webpack.base.babel')({
], ],
}), }),
new HashedModuleIdsPlugin({ // new HashedModuleIdsPlugin({
hashFunction: 'sha256', // hashFunction: 'sha256',
hashDigest: 'hex', // hashDigest: 'hex',
hashDigestLength: 20, // hashDigestLength: 20,
}), // }),
], ],
performance: { performance: {
......
...@@ -101,7 +101,7 @@ tr.dropOverUpward td { ...@@ -101,7 +101,7 @@ tr.dropOverUpward td {
} }
tr.dropOverGroup td { tr.dropOverGroup td {
// border: 1px dashed #1890ff; // border: 1px dashed #1890ff;
background-color: aqua; background-color: #AED8FA;
} }
.clickRowStyle { .clickRowStyle {
background: #cfe7fd; background: #cfe7fd;
......
...@@ -76,6 +76,11 @@ const LoadGroupNew = props => { ...@@ -76,6 +76,11 @@ const LoadGroupNew = props => {
title: '组名称', title: '组名称',
dataIndex: 'text', dataIndex: 'text',
key: 'text', key: 'text',
render: (text, record) => (
<div>
{text} <span>({record.fieldData.length})</span>
</div>
),
}, },
]; ];
const components = { const components = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment