Skip to content

Commit

Permalink
Revert "fix: Move trim and scoped postcss plugins at the start of plu…
Browse files Browse the repository at this point in the history
…gin list (#36)"

This reverts commit 0d52d86.
  • Loading branch information
yyx990803 committed Dec 11, 2018
1 parent 2603ee2 commit 61aaee2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/compileStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export function doCompileStyle(
const source = preProcessedSource ? preProcessedSource.code : options.source

const plugins = (postcssPlugins || []).slice()
if (scoped) {
plugins.unshift(scopedPlugin(id))
}
if (trim) {
plugins.unshift(trimPlugin())
plugins.push(trimPlugin())
}
if (scoped) {
plugins.push(scopedPlugin(id))
}

const postCSSOptions: ProcessOptions = {
Expand Down

0 comments on commit 61aaee2

Please sign in to comment.