diff --git a/programs/develop/webpack/loaders/styleLoaders.ts b/programs/develop/webpack/loaders/styleLoaders.ts index 3930ce65..b5b68878 100644 --- a/programs/develop/webpack/loaders/styleLoaders.ts +++ b/programs/develop/webpack/loaders/styleLoaders.ts @@ -20,7 +20,7 @@ export default function styleLoaders(projectDir: string, opts: any) { use: getCommonStyleLoaders(projectDir, { regex: /\.css$/, mode: opts.mode, - useMiniCssExtractPlugin: true + useMiniCssExtractPlugin: opts.mode === 'production' }) } ]