From c8ad12291ffac5f8d58e8318b3b4048c4bb14b4c Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 10 Feb 2021 07:03:56 -0500 Subject: [PATCH] updating config for postcss-loader v4 --- frontend/encore/postcss.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/encore/postcss.rst b/frontend/encore/postcss.rst index 76c6e8d67e9..d2322b14032 100644 --- a/frontend/encore/postcss.rst +++ b/frontend/encore/postcss.rst @@ -43,13 +43,14 @@ You can also pass options to the `postcss-loader`_ by passing a callback: .. code-block:: diff // webpack.config.js + + const path = require('path'); Encore // ... + .enablePostCssLoader((options) => { - + options.config = { + + options.postcssOptions = { + // the directory where the postcss.config.js file is stored - + path: 'path/to/config' + + config: path.resolve(__dirname, 'sub-dir', 'custom.config.js'), + }; + }) ;