tried fixing up JS compile stuff

This commit is contained in:
2022-09-30 14:43:10 -06:00
parent 7370a1e7e2
commit 947a78b03a
4 changed files with 25981 additions and 10645 deletions

View File

@ -1,5 +1,8 @@
(function($) {
console.log('Your plugin just got loaded on the admin page!');
console.log('This is what you get as jQuery:', $);
console.log('Here is what you set for nmspPluginAdminApi:', window.nmspPluginAdminApi);
}(window.jQuery));
(() => {
// resources/admin/js/nmsp-plugin-name-admin.js
(function($) {
console.log("Your plugin just got loaded on the admin page!");
console.log("This is what you get as jQuery:", $);
console.log("Here is what you set for nmspPluginAdminApi:", window.nmspPluginAdminApi);
})(window.jQuery);
})();

View File

@ -1,5 +1,8 @@
(function($) {
console.log('Your plugin just got loaded!');
console.log('This is what you get as jQuery:', $);
console.log('Here is what you set for nmspPluginApi:', window.nmspPluginApi);
}(window.jQuery));
(() => {
// resources/front/js/nmsp-plugin-name.js
(function($) {
console.log("Your plugin just got loaded!");
console.log("This is what you get as jQuery:", $);
console.log("Here is what you set for nmspPluginApi:", window.nmspPluginApi);
})(window.jQuery);
})();