vite_ruby icon indicating copy to clipboard operation
vite_ruby copied to clipboard

Use javascript_include_tag in vite_client_tag

Open CyberAP opened this issue 3 years ago • 0 comments

Description 📖

In order to inherit all the features of the javascript_include_tag it should be used within vite_client_tag. Otherwise you won't get CSP support and all other built-in features.

Background 📜

You won't be able to work with vite_client_tag in a CSP environment without this change.

The Fix 🔨

Use javascript_include_tag instead of tag.script

CyberAP avatar Aug 09 '22 12:08 CyberAP