diff --git a/lib/core/src/server/build-static.js b/lib/core/src/server/build-static.js index ed8a34ab6e17..57f88a75f6c4 100644 --- a/lib/core/src/server/build-static.js +++ b/lib/core/src/server/build-static.js @@ -120,13 +120,11 @@ async function buildManager(configType, outputDir, configDir, options) { logger.info('=> Loading manager config..'); const managerConfig = await loadManagerConfig({ + ...options, configType, outputDir, configDir, corePresets: [require.resolve('./manager/manager-preset.js')], - frameworkPresets: options.frameworkPresets, - docsMode: options.docsMode, - previewUrl: options.previewUrl, }); if (options.debugWebpack) { @@ -144,12 +142,12 @@ async function buildPreview(configType, outputDir, packageJson, options) { logger.info('=> Loading preview config..'); const previewConfig = await loadConfig({ + ...options, configType, outputDir, packageJson, corePresets: [require.resolve('./preview/preview-preset.js')], overridePresets: [require.resolve('./preview/custom-webpack-preset.js')], - ...options, }); if (debugWebpack) {