Exclude inline scripts and dynamic assets
-
Hey NitroPack Team!
Here is Matthew, developer behind the plugin of “Real Cookie Banner”.
We are trying to make Real Cookie Banner compatible with NitroPack. For this, we need to exclude inline scripts and dynamically created assets from any NitroPack operations (minify, combine, …).
On your website, you have an interesting article about how to exclude resources: https://support.nitropack.io/hc/en-us/articles/1500002527542-Excluded-Resources
Unfortunately, this doesn’t work for us because we can’t have all of our customers create a rule. It would be more practical to have an identifier here which is always excluded. Is there a chance you introduce an identifier like the following, which is always skipped on your end:
<script nitropack-skip>console.log("do anything");</script> <script nitropack-skip src="https://example.com/my-asset.js"></script>
Regards,
Matthew ??
- The topic ‘Exclude inline scripts and dynamic assets’ is closed to new replies.