mohamdio / slush-kickstart

A slush generator to scaffold front-end projects
MIT License
14 stars 5 forks source link

Inject js scripts #1

Closed thebiltheory closed 8 years ago

thebiltheory commented 8 years ago

Hi,

First, I like the kickstarter. However I don't really get the js in sources injected in the index.

Cheers.

mohamdio commented 8 years ago

Hi, first thanks for using kickstart second : i tested this and appear working fine ( http://jmp.sh/9NqxtdT ), just start gulp task and add some codes in your js files to test changes in sources tab.

thebiltheory commented 8 years ago

@mohamdio I figured how inject the bower-files but, still seems having issues.

I inject all the modules this way. [ http://pasteboard.co/1e7beBnT.png ]

But seems jquery doesn't want to be loaded. I get the following error when I inject all the modules [ http://pasteboard.co/1e7q8ksI.png ]

Actually any of the scripts seems working.

mohamdio commented 8 years ago

Because bootstrap wants jQuery global, so will require it like that :

window.jQuery = $ = require('../vendor/jquery');

and will working fine.

thebiltheory commented 8 years ago

Thank you so much @mohamdio! Everything is working fine!