You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In certain situations it makes sense to externalise inline scripts and styles for CSP purposes (e.g. when building Chrome extensions).
Describe the proposed solution
This only really applies to prerendered pages (there's basically no good way to externalise a dynamically rendered script), so I propose the following interface:
Describe the problem
In certain situations it makes sense to externalise inline scripts and styles for CSP purposes (e.g. when building Chrome extensions).
Describe the proposed solution
This only really applies to prerendered pages (there's basically no good way to externalise a dynamically rendered script), so I propose the following interface:
This would override the
inlineStyleThreshold
option. (Ifexternalise
isn't descriptive enough, we can bikeshed this.)This would write out an inline script to the filesystem for each prerendered page, under the
appDir
(so the script can be cached immutably).Alternatives considered
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: