Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twigpack outputs empty strings on Docker #36

Closed
ignism opened this issue Feb 5, 2020 · 1 comment
Closed

Twigpack outputs empty strings on Docker #36

ignism opened this issue Feb 5, 2020 · 1 comment

Comments

@ignism
Copy link

ignism commented Feb 5, 2020

I have a manifest file sitting at http://localhost:8080/build/manifest.json and I configured my twigpack.php as follows:

// Manifest file names
'manifest' => [
    'legacy' => 'manifest-legacy.json',
    'modern' => 'manifest.json',
],
// Public server config
'server' => [
    'manifestPath' => '/build/',
    'publicPath' => '/',
],
// webpack-dev-server config
'devServer' => [
    'manifestPath' => 'http://localhost:8080/build/',
    'publicPath' => 'http://localhost:8080',
],

However, twigpack can't find my modules it seems. and doesn't output anything. Is there a way for me to debug this, whether Twigpack found the manifest at all?

EDIT:
I went through my logs and indeed, Twigpack can't find the file.
[warning][nystudio107\twigpack\helpers\Manifest::reportError] Manifest file not found at: http://localhost:8080/build/

Any idea what I'm doing wrong?

@ignism
Copy link
Author

ignism commented Feb 6, 2020

setting publicPath to 'publicPath' => 'build/', did the trick

@ignism ignism closed this as completed Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant