Nonce, Preload and/or Docs #530
Unanswered
conwayatmundotca
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I think this could fall under any of the categories.
Both @fluxStyles and @fluxScripts do not take any parameters, specifically the ability to add a nonce. Nor those it attempt to preload those assets.
I'm not if this is a bug given you can pass parameters @livewireScripts, etc... and you are have an unused parameter in here...
flux/src/AssetManager.php
Lines 21 to 28 in 8b047fe
Outside of taking the value from
app('flux')->scripts()
and using a string function to pop in the nonce before outputting, there is one other option, and isn't documented....Adding
import '../../vendor/livewire/flux-pro/dist/flux.module.js';
to/resources/js/app.js
Obviously, the bundle size gets quite big, so I've been testing this, which works awesome especially over http2 (we add caddy to our sail/docker setup)
Thanks,
Dale Conway,
CWS Team, OCIO, Memorial University
Beta Was this translation helpful? Give feedback.
All reactions