Skip to content

Commit

Permalink
Make cssnano configurable (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawwn authored and devongovett committed Dec 31, 2017
1 parent c8a1156 commit 14e7880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transforms/postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async function getConfig(asset) {
}

if (asset.options.minify) {
config.plugins.push(cssnano());
config.plugins.push(
cssnano((await Config.load(asset.name, ['cssnano.config.js'])) || {})
);
}

config.from = asset.name;
Expand Down

0 comments on commit 14e7880

Please sign in to comment.