Skip to content

Commit

Permalink
fix(app): Backport "duplicate postcss plugins" fix from Qv2
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Apr 23, 2021
1 parent 6d283e8 commit b7e66ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/webpack/inject.style-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function injectRule (chain, pref, lang, test, loader, loaderOptions) {
// need a fresh copy, otherwise plugins
// will keep on adding making N duplicates for each one
delete require.cache[postCssConfigFile]
const postCssOpts = { sourceMap: pref.sourceMap, ...require(postCssConfigFile) }
const postCssConfig = require(postCssConfigFile)
const postCssOpts = { sourceMap: pref.sourceMap, ...postCssConfig }

if (pref.rtl) {
const postcssRTL = require('postcss-rtl')
Expand Down

0 comments on commit b7e66ad

Please sign in to comment.