Skip to content

Commit

Permalink
Chore: fix postcss options lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondhume committed Sep 30, 2019
1 parent 9aca7f9 commit b2a77d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/styleguide/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const cssMap = require('@appearhere/common-styles');

const postcss = (config, env) => {
let options = env === 'production'
? config.module.rules[2].oneOf[4].loader[2].options
? config.module.rules[2].oneOf[4].loader[3].options
: config.module.rules[2].oneOf[4].use[2].options;

options.plugins = () => [
Expand Down

0 comments on commit b2a77d4

Please sign in to comment.