Skip to content

Commit

Permalink
configurePostCss should be called on webpack client config, not serve…
Browse files Browse the repository at this point in the history
…r config
  • Loading branch information
slorber committed Apr 4, 2024
1 parent 26e0bd9 commit b8a5791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ async function getBuildClientConfig({
bundleAnalyzer: cliOptions.bundleAnalyzer ?? false,
});
let {config} = result;
config = executePluginsConfigurePostCss({
plugins,
config,
});
config = executePluginsConfigureWebpack({
plugins,
config,
Expand All @@ -340,10 +344,6 @@ async function getBuildServerConfig({props}: {props: Props}) {
props,
});
let {config} = result;
config = executePluginsConfigurePostCss({
plugins,
config,
});
config = executePluginsConfigureWebpack({
plugins,
config,
Expand Down

0 comments on commit b8a5791

Please sign in to comment.