Skip to content

[Encore] Add docs on how to add extra webpack config #8067

Closed
@weaverryan

Description

@weaverryan

Encore doesn't support adding all of Webpack's options... because many are easy enough for you to add yourself. For example (from symfony/webpack-encore#35), if you want to add watchOptions, I think we should encourage you to add those yourself:

// webpack.config.js

var Encore = require('@symfony/webpack-encore');

// all Encore config here

var config = Encore.getWebpackConfig();

config.watchOptions = { poll: true, ignored: /node_modules/ };

module.exports = config;

Metadata

Metadata

Assignees

No one assigned

    Labels

    front-endhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions