rake assets:precompile issue with JS and stylesheets files with similar name


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.

Never mind, My bad… :slight_smile:

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)