Skip to content

Commit

Permalink
better syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Jun 14, 2017
1 parent 9419bc8 commit 50b25f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/compilers/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ function compileSiteStyles(component, site, { styleguide, basePath, isProduction
plugins.push(cssnano({ preset: 'default' }));
}

return postcss(plugins).process(contents, { from: componentPath, parser: syntax })
return postcss(plugins)
.process(contents, { from: componentPath, parser: syntax })
.then((result) => fs.outputFile(`${basePath}/public/css/${component}.${site}.css`, result.css));
});
}
Expand Down

0 comments on commit 50b25f9

Please sign in to comment.