Merge pull request #129 from mokinzhao/master

update: Improve packing speed
This commit is contained in:
mokinzhao 2021-10-01 09:34:34 +08:00 committed by GitHub
commit 2c46d0e86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6528 additions and 3311 deletions

View File

@ -3,20 +3,22 @@ import { defineConfig } from 'umi';
const { ModuleFederationPlugin } = require("webpack").container; const { ModuleFederationPlugin } = require("webpack").container;
export default defineConfig({ export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
dynamicImport: { dynamicImport: {
loading: '@/components/LoadingCp', loading: '@/components/LoadingCp',
}, },
dva: { dva: {
immer: true, immer: true,
}, },
devtool: 'source-map', // devtool: 'source-map',
antd: {}, antd: {},
title: 'h5-dooring', title: 'h5-dooring',
// exportStatic: {}, // exportStatic: {},
base: '/', base: '/',
publicPath: '/', publicPath: '/',
outputPath: 'dist', outputPath: 'dist',
esbuild: {},
routes: [ routes: [
{ {
exact: false, exact: false,

File diff suppressed because it is too large Load Diff