Skip to content

Commit

Permalink
fix: ensure postcss-import is applied first
Browse files Browse the repository at this point in the history
fix #355
  • Loading branch information
yyx990803 committed Jun 5, 2020
1 parent 36eeaee commit a383ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/utils/cssUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function compileCss(

const postcssOptions = postcssConfig && postcssConfig.options
const postcssPlugins = postcssConfig ? postcssConfig.plugins : []
postcssPlugins.push(require('postcss-import')())
postcssPlugins.unshift(require('postcss-import')())

const res = await compileStyleAsync({
source,
Expand Down

0 comments on commit a383ec3

Please sign in to comment.