Closed JarvisArt closed 9 months ago
import { defineConfig } from '@umijs/max'; import WebpackAssetsManifest from 'webpack-assets-manifest'; import routes from './routes'; export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, routes, npmClient: 'yarn', manifest: false, chainWebpack(memo) { memo.plugin('webpack-assets-manifest').use( new WebpackAssetsManifest({ output: '../assets/asset-manifest.json', writeToDisk: true, entrypoints: true, entrypointsUseAssets: true, }), ); } });
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
memo.plugin('assets-manifest-plugin').use( require('webpack-assets-manifest'), [{ ...options }] );
What happens?
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context