Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #94 from frontend/feature/fix-jquery
Browse files Browse the repository at this point in the history
Feature/fix jquery
  • Loading branch information
Yago authored Mar 9, 2018
2 parents 737cdb9 + c258439 commit 85b0014
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions generators/app/templates/assets/base.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
/* globals jQuery, document */

// You will use that file to import all your scripts
// Ex: import gallery from './gallery'<% if (svgIcons) { %>
import svgIcons from '../icons/svg-icons';

svgIcons(); // Must run as soon as possible<% } %>

const init = () => {
// Run your imported scripts
// Ex: gallery();
};

(function ($) {
$(document).ready(function () {
// Run your imported scripts
// Ex: gallery();
});
$(document).ready(() => init());
})(jQuery);
document.addEventListener('ToolboxReady', () => init());
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-toolbox",
"version": "2.0.8",
"version": "2.0.9",
"description": "Yeoman generator",
"homepage": "http://frontend.github.io/toolbox/",
"author": {
Expand Down

0 comments on commit 85b0014

Please sign in to comment.