Closed
Description
In https://symfony.com/doc/5.3/frontend/encore/postcss.html, the following config is displayed:
// webpack.config.js
Encore
// ...
.enablePostCssLoader((options) => {
options.config = {
// the directory where the postcss.config.js file is stored
path: 'path/to/config'
};
})
;
However, as mentioned in this Stackoverflow post, PostCSS config has changed to:
Encore
// ...
.enablePostCssLoader((options) => {
// new option outlined here https://webpack.js.org/loaders/postcss-loader/
options.postcssOptions = {
config: './postcss.config.js',
},
})
;