Skip to content

Commit

Permalink
Build: Trigger LazyResult#then for postcss.process
Browse files Browse the repository at this point in the history
See: http://api.postcss.org/LazyResult.html#css

>This is why this method is only for debug purpose, you should always use LazyResult#then.
  • Loading branch information
aduth committed Jan 4, 2019
1 parent 9feaf4a commit b6e7084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ async function buildScssFile( styleFile ) {
),
} );

const result = postcss( require( './post-css-config' ) ).process( builtSass.css, {
const result = await postcss( require( './post-css-config' ) ).process( builtSass.css, {
from: 'src/app.css',
to: 'dest/app.css',
} );

const resultRTL = postcss( [ require( 'rtlcss' )() ] ).process( result, {
const resultRTL = await postcss( [ require( 'rtlcss' )() ] ).process( result, {
from: 'src/app.css',
to: 'dest/app.css',
} );
Expand Down

0 comments on commit b6e7084

Please sign in to comment.