We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054eae1 commit 28f175dCopy full SHA for 28f175d
README.md
@@ -19,15 +19,12 @@
19
## Get List Of Used JS On A Sigle Page
20
```
21
/* Use in browser console */
22
-/* Replace PATH_TO_JS with a string of static content URL including language. E.g.
23
-'https://domain.com/pub/static/version1549034518/frontend/Magento/luma/en_US/'
24
-*/
25
globalSrc = '';
26
jQuery('script').each(function(){
27
if (!jQuery(this).attr('src')) return;
28
var src = jQuery(this).attr('src');
29
-if (src.indexOf('https://' + window.location.hostname) != -1 || src.indexOf('http://' + window.location.hostname) != -1) {
30
-var src = (src.replace(PATH_TO_JS, ''));
+if (src.indexOf(require.toUrl('')) != -1) {
+var src = (src.replace(require.toUrl(''), ''));
31
globalSrc += "\n" + src;
32
}
33
})
0 commit comments