I have begun developing an app using Electron, GitHub's desktop application framework. I am using the Electron Boilerplate.
To run the app I run npm install followed by npm start. This works great with the initial boilerplate.
I now want to integrate jQuery. To do this I add:
<script>
window.$ = window.jQuery = require('./assets/scripts/jquery-1.12.1.min.js');
</script>
Unfortunately this spits out an error in the dev console stating it can't be found. I'm assuming it's all running from the /build directory, where the assets aren't.
So my questions:
- Should the assets from my assets folder (
/assets/jsand/assets/css) be copied uponnpm start/npm install? - Is the app running from
/buildor is there another problem here?
Thanks