From 25a8a98692f928822ebf00a00310441bb2112b64 Mon Sep 17 00:00:00 2001 From: Rahul Kadyan Date: Thu, 25 Oct 2018 23:04:28 +0530 Subject: [PATCH] fix: Add trim and scoped postcss plugins at the start of plugin list --- lib/compileStyle.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compileStyle.ts b/lib/compileStyle.ts index bbd39c3..443af34 100644 --- a/lib/compileStyle.ts +++ b/lib/compileStyle.ts @@ -62,11 +62,11 @@ export function doCompileStyle( const source = preProcessedSource ? preProcessedSource.code : options.source const plugins = (postcssPlugins || []).slice() - if (trim) { - plugins.push(trimPlugin()) - } if (scoped) { - plugins.push(scopedPlugin(id)) + plugins.unshift(scopedPlugin(id)) + } + if (trim) { + plugins.unshift(trimPlugin()) } const postCSSOptions: ProcessOptions = { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy