Skip to content

Commit

Permalink
remove alias CssExtractRspackPlugin as MiniCssExtractPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Aug 16, 2024
1 parent 6ec8d65 commit 64fdfcf
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion packages/docusaurus/src/webpack/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,18 @@ export function getStyleLoaders(
if (isServer) {
return cssOptions.modules
? [
{
loader: 'builtin:lightningcss-loader',
options: {
targets: 'ie 10',
},
},
/*
{
loader: require.resolve('css-loader'),
options: cssOptions,
},
*/
]
: [
{
Expand All @@ -74,10 +82,18 @@ export function getStyleLoaders(
emit: false,
},
},
{
loader: 'builtin:lightningcss-loader',
options: {
targets: 'ie 10',
},
},
/*
{
loader: require.resolve('css-loader'),
options: cssOptions,
},
*/
];
}

Expand All @@ -88,11 +104,17 @@ export function getStyleLoaders(
esModule: true,
},
},
{
loader: 'builtin:lightningcss-loader',
options: {
targets: 'ie 10',
},
},
/*
{
loader: require.resolve('css-loader'),
options: cssOptions,
},
/*
{
// Options for PostCSS as we reference these options twice
// Adds vendor prefixing based on your specified browser support in
Expand Down

0 comments on commit 64fdfcf

Please sign in to comment.