File tree 1 file changed +5
-2
lines changed
packages/docusaurus/src/webpack
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export async function createBaseConfig({
77
77
siteMetadata,
78
78
plugins,
79
79
} = props ;
80
+ const { currentBundler} = configureWebpackUtils ;
80
81
const totalPages = routesPaths . length ;
81
82
const isProd = process . env . NODE_ENV === 'production' ;
82
83
const minimizeEnabled = minify && isProd ;
@@ -89,7 +90,7 @@ export async function createBaseConfig({
89
90
const themeAliases = await loadThemeAliases ( { siteDir, plugins} ) ;
90
91
91
92
const CSSExtractPlugin = await getCSSExtractPlugin ( {
92
- currentBundler : configureWebpackUtils . currentBundler ,
93
+ currentBundler,
93
94
} ) ;
94
95
95
96
return {
@@ -178,7 +179,9 @@ export async function createBaseConfig({
178
179
// Only minimize client bundle in production because server bundle is only
179
180
// used for static site generation
180
181
minimize : minimizeEnabled ,
181
- minimizer : minimizeEnabled ? await getMinimizers ( { faster} ) : undefined ,
182
+ minimizer : minimizeEnabled
183
+ ? await getMinimizers ( { faster, currentBundler} )
184
+ : undefined ,
182
185
splitChunks : isServer
183
186
? false
184
187
: {
You can’t perform that action at this time.
0 commit comments