Commit 48445591 authored by 邓超's avatar 邓超

fix: 修改打包问题

parent e411f7fc
Pipeline #48934 passed with stages
in 17 minutes 24 seconds
......@@ -2,8 +2,8 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackPwaManifest = require('webpack-pwa-manifest');
const OfflinePlugin = require('offline-plugin');
const { HashedModuleIdsPlugin } = require('webpack');
// const OfflinePlugin = require('offline-plugin');
// const { HashedModuleIdsPlugin } = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
......@@ -87,27 +87,27 @@ module.exports = require('./webpack.base.babel')({
// Put it in the end to capture all the HtmlWebpackPlugin's
// assets manipulations and do leak its manipulations to HtmlWebpackPlugin
new OfflinePlugin({
relativePaths: false,
publicPath: '/',
appShell: '/',
// new OfflinePlugin({
// relativePaths: false,
// publicPath: '/',
// appShell: '/',
// No need to cache .htaccess. See http://mxs.is/googmp,
// this is applied before any match in `caches` section
excludes: ['.htaccess'],
// // No need to cache .htaccess. See http://mxs.is/googmp,
// // this is applied before any match in `caches` section
// excludes: ['.htaccess'],
caches: {
main: [':rest:'],
// caches: {
// main: [':rest:'],
// All chunks marked as `additional`, loaded after main section
// 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)
additional: ['*.chunk.js'],
},
// // All chunks marked as `additional`, loaded after main section
// // 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)
// additional: ['*.chunk.js'],
// },
// Removes warning for about `additional` section usage
safeToUseOptionalCaches: true,
}),
// // Removes warning for about `additional` section usage
// safeToUseOptionalCaches: true,
// }),
new CompressionPlugin({
algorithm: 'gzip',
......@@ -137,11 +137,11 @@ module.exports = require('./webpack.base.babel')({
],
}),
new HashedModuleIdsPlugin({
hashFunction: 'sha256',
hashDigest: 'hex',
hashDigestLength: 20,
}),
// new HashedModuleIdsPlugin({
// hashFunction: 'sha256',
// hashDigest: 'hex',
// hashDigestLength: 20,
// }),
],
performance: {
......
......@@ -101,7 +101,7 @@ tr.dropOverUpward td {
}
tr.dropOverGroup td {
// border: 1px dashed #1890ff;
background-color: aqua;
background-color: #AED8FA;
}
.clickRowStyle {
background: #cfe7fd;
......
......@@ -76,6 +76,11 @@ const LoadGroupNew = props => {
title: '组名称',
dataIndex: 'text',
key: 'text',
render: (text, record) => (
<div>
{text} <span>({record.fieldData.length})</span>
</div>
),
},
];
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