chore: update runtime (#3312)

This commit is contained in:
Alex Yang
2023-07-19 17:58:51 +08:00
committed by GitHub
parent 710b34a13a
commit ae182bfd78
6 changed files with 11 additions and 4 deletions

View File

@@ -249,7 +249,7 @@ export const createConfiguration: (
inject: 'body',
scriptLoading: 'defer',
minify: false,
chunks: ['index'],
chunks: ['index', 'plugin'],
filename: 'index.html',
}),
new MiniCssExtractPlugin({

View File

@@ -15,9 +15,14 @@ export default async function (cli_env: any, _: any) {
return merge(config, {
entry: {
index: {
asyncChunks: true,
asyncChunks: false,
import: resolve(rootPath, 'src/index.tsx'),
},
plugin: {
dependOn: ['index'],
asyncChunks: true,
import: resolve(rootPath, 'src/bootstrap/register-plugins.ts'),
},
},
});
}