-
Notifications
You must be signed in to change notification settings - Fork 23
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
Laravel Mix mix-manifest.json support #18
Comments
You can attach it to the locals object in you build config: mix.pug('src/*.pug', 'dist', {
locals: {
manifest: require('mix-manifest.json')
}
}); and access it in your pug file something like this: script(src=`{manifest['/js/app.js']}`) Hope this helps! |
Hey @matejsvajger thanks! I tried that but I can't seem to be able to reference mix-manifest.json, I keep getting this error:
My mix config is below (Laravel app):
I can see my mix-manifest.json file is being written to my |
Hey @matejsvajger ok I got it building with
|
Hey does anyone know how to reference the
mix-manifest.json
file inside a pug file? The docs for it apply to html or blade so I assume we need some magic here?The text was updated successfully, but these errors were encountered: