Skip to content

[Frontend] PostCSS config has changed #14935

Closed
@WouterCypers

Description

@WouterCypers

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',
            },
    })
;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions