Skip to content

Commit

Permalink
fix(core): fix css url("image.png"), use css-loader v6 with esModules…
Browse files Browse the repository at this point in the history
…: false (#6424)
  • Loading branch information
slorber authored Jan 20, 2022
1 parent 8ce3cee commit 8a092f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/docusaurus/src/webpack/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ import {memoize} from 'lodash';
// Utility method to get style loaders
export function getStyleLoaders(
isServer: boolean,
cssOptions: {
cssOptionsArg: {
[key: string]: unknown;
} = {},
): RuleSetRule[] {
const cssOptions: {[key: string]: unknown} = {
// TODO turn esModule on later, see https://github.com/facebook/docusaurus/pull/6424
esModule: false,
...cssOptionsArg,
};

if (isServer) {
return cssOptions.modules
? [
Expand Down

0 comments on commit 8a092f5

Please sign in to comment.