JQuery, 'Hammer is not defined'


So, I’m trying to use JQuery with Electron which is really more hassle than it should be. I’ve added Materializecss and I’ve done

		window.$ = window.jQuery = require('./js/jquery.min.js')
		window.Hammer = require('./js/hammer.min.js')

inside my index.html, but I’m still getting “$” and “Hammer not defined”, any reason why?


Maybe because you have placed these definitions after your app. I have been able to successfully use materialize with the same code, but this script tag needs to be at the top, before you reference any other scripts