Farukh D.M
2013-May-23 09:50 UTC
rake assets:precompile issue with JS and stylesheets files with similar name
Hi, I''ve got following two files with same names under javascripts and stylesheets directories as: - app/assets/javascripts/test_vendor.js - app/assets/stylesheets/test_vendor.scss Essentially a JS and an stylesheet files with same name. -------------------------------------------------------------- I want these files to be precompiled and served from public directory. Thus I updated: *config.assets.precompile += %w(test_vendor.js test_vendor.scss)* ---------------------------------------------------------------- I am running following task to pre-compile my assets in development: *"rake assets:precompile RAILS_ENV=development RAILS_GROUPS=assets --trace"* It generates assets/ folder inside my public directoy. *But I see only test_vendor.js and test_vendor.js.gz inside it* *test_vendor.css is missing.* Please let me know, how to avoid/fix this issue. Regards Farukh D M -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/074430d3-5c1f-4f1a-8180-af14539d8ff2%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Farukh D.M
2013-May-23 11:04 UTC
Re: rake assets:precompile issue with JS and stylesheets files with similar name
Never mind, My bad.... :) I was not using correct convention for including css file. it has to be "test_vendor.css" instead of "test_vendor.scss" Following works. *config.assets.precompile += %w(test_vendor.js test_vendor.css)* On Thursday, 23 May 2013 15:20:51 UTC+5:30, Farukh D.M wrote:> > Hi, > > I''ve got following two files with same names under javascripts and > stylesheets directories as: > - app/assets/javascripts/test_vendor.js > - app/assets/stylesheets/test_vendor.scss > > Essentially a JS and an stylesheet files with same name. > > -------------------------------------------------------------- > > I want these files to be precompiled and served from public directory. > Thus I updated: > *config.assets.precompile += %w(test_vendor.js test_vendor.scss)* > > ---------------------------------------------------------------- > > I am running following task to pre-compile my assets in development: > *"rake assets:precompile RAILS_ENV=development RAILS_GROUPS=assets > --trace"* > > It generates assets/ folder inside my public directoy. > *But I see only test_vendor.js and test_vendor.js.gz inside it* > *test_vendor.css is missing.* > > Please let me know, how to avoid/fix this issue. > > Regards > Farukh D M > > > > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3e0d351b-ab62-4e85-8cb3-245961dcda66%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.