Skip to content

I don't know in which subfolder my app will live #882

Closed
@SimonMellerin

Description

@SimonMellerin

Hi,

Here is my use case:

I package a Symfony app.

  • The app can be install by anyone
  • An instance of this app can live at example.com and another at example.com/foo,
  • I want to release the app with assets & dependencies
    (final user who will install it do not have to use yarn or composer)

The problem is: webpack.config.js ask me to configure my public path before I compile, but I can't know it at this time.

I can't find such a use case in Symfony documentation, or in readme here.

Is there a way to tell Symonfy or Webpack Encore with a Symfony parameter that my app lives in a subfolder ?

Not sure if I'm clear here :/

Cheers
Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions