From c796063fa361cb02362abc071bcfda02743e4e11 Mon Sep 17 00:00:00 2001 From: Martin Eigenmann Date: Sat, 29 Oct 2022 09:23:43 +0200 Subject: [PATCH] feature: allow overriding rules use section --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 1f671dd..f2760d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -68,6 +68,7 @@ export const webpack = ( sideEffects: true, ...rule, use: [ + ...rule.use || [], ...wrapLoader(require.resolve('style-loader'), styleLoaderOptions), ...wrapLoader(require.resolve('css-loader'), cssLoaderOptions), ...wrapLoader(