tried fixing up JS compile stuff
This commit is contained in:
@ -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);
|
||||
})();
|
||||
|
@ -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);
|
||||
})();
|
||||
|
Reference in New Issue
Block a user