Skip to content

Commit

Permalink
fix(ui): 馃悰 postcss / customize-cra compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
collinbarrett committed Jan 22, 2022
1 parent 64f2e76 commit fe9eeba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion web/config-overrides.js
@@ -1,5 +1,10 @@
const { getThemeVariables } = require("antd/dist/theme");
const { override, fixBabelImports, addLessLoader } = require("customize-cra");
const {
override,
fixBabelImports,
addLessLoader,
adjustStyleLoaders,
} = require("customize-cra");

module.exports = override(
fixBabelImports("import", {
Expand All @@ -17,5 +22,9 @@ module.exports = override(
}),
},
},
}),
adjustStyleLoaders(({ use: [, , postcss] }) => {
const postcssOptions = postcss.options;
postcss.options = { postcssOptions };
})
);

0 comments on commit fe9eeba

Please sign in to comment.