Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordering assets.css() & assets.js() #320

Closed
saada opened this issue Apr 13, 2013 · 6 comments
Closed

Ordering assets.css() & assets.js() #320

saada opened this issue Apr 13, 2013 · 6 comments

Comments

@saada
Copy link
Contributor

saada commented Apr 13, 2013

Is there a way to order the appending of css files to my HTML output?
Since CSS and JS depend on the order of their declaration, is there a way through Sails to have some control over the order of files, other than alphabetical =D?

@vanbungkring
Copy link

i think its not possible now, try to rename it as alphabetical 🍭

@stefanlegg
Copy link

I was just thinking about this today. I may work on adding this feature this weekend.

@poeticninja
Copy link
Contributor

This was something that came up in the chat room today. I know browserify works with asset-rack and it would allow you to choose the loading of your scripts.
https://github.com/techpines/asset-rack/tree/master/lib#browserifyasset-jscoffeescript

@dcbartlett
Copy link
Contributor

@saada can you should me an email over to dcbartlett@balderdash.co please. I need to speak with you off the net about something.

@D1plo1d
Copy link
Contributor

D1plo1d commented May 9, 2013

@saada If you pull #374 and #375 this should be working via snockets.

Just include your main app.js in your page and add //= require "my_dependency" for each dependency to the top of it to pull in your dependencies.

@mikermcneil
Copy link
Member

We're providing proper grunt integration soon-- check out the grunt branch for more info.

@D1plo1d If you think it makes sense to bring back snockets support in that version, I'm down-- probably just ought to bring in this bad boy: https://npmjs.org/package/grunt-snockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants