I need to import some files into application.css or application.js files. For example, for css I use @import statements. I have some stylesheets in a vendor/assets/stylesheets directory:
vendor/assets/stylesheets/font-awesome.min.css
vendor/assets/stylesheets/bootstrap.min.css
etc
So I use:
@import 'font-awesome';
@import 'simple-line-icons';
@import 'bootstrap';
Here I was able to load the font-awesome file, but not bootstrap or simple-line-icons. I got this error:
File to import not found or unreadable: file_name.css
Quite strange. Is the general idea of importing files from vendor directory correct? Or should I put those files in some other directory?
P.S: I know you might ask why I am importing bootstrap manually and not using a gem; the answer is that I bought some templates and I want to include all files from the templates to be consistent.
vendor/assets/stylesheetsis perfectly correct. Have you tried to use@import 'bootstrap.min'? - Alexander Komarovfont-awesomeand notbootstrap. AFAIK I should convert my comment into an actual answer. Will do. - Alexander Komarov