Javascript folder?

Hi all :smile:
I have just installed a fresh install of Middleman Version 4.0 and all good. I just seem to have run into an issue with the Javascript folder and I cant get my head around it.

In my javascript folder I have another folder called Vendor and in that folder I have some javascript files like so:

//= require vendor/scrollmagic
//= require vendor/slick

But when I view my site on localhost it doesn’t seem to include the javascript files and nothing is outputted? What am I doing wrong?

Thanks in advance for the help!

Is the folder Vendor or vendor?

Hi dikaio, sorry its vendor

Tony it should work then, is there a repo you can share?

@dikaio I don’t have one at the moment but will double check tomorrow to see if I missed something, do I need to add anything into the config.rb for the Javascript folder to work?

It should work right out of the box. In your config you should have this line:

set :js_dir, 'javascripts'

Are you files scrollmagic.js and slick.js or possibly scrollmagic.min.js and slick.min.js ?

They are just scrollmagic.js and slick.js that I did check :), I can´t remember now if I have set :js_dir, ‘javascripts’ in my config it could be the issue then…

As docs say: The Rails Asset Pipeline has been removed from the core of Middleman v4

So, as I understand, now middleman doesn’t use sprockets to maintain javascript files.