Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I use Laravel 5 and Elixir.

I have app.scss which imports _bootstrap.csss (installed by bower), and these files are compiled to one file public/css/app.css.

Also I have some CSS files in other dependencies (installed by bower), and I want to add them to public/css/app.css.

How can I do it?

share|improve this question

1 Answer 1

First you'll need to rename your .css file as a .scss file, then you can import the new .scss file into the app.scss file using the same method _bootstrap.scss is imported.

@import "path/to/css/file.scss";
share|improve this answer
    
This file is installed with bower. It's a dependency. I shouldn't rename or patch dependency files. –  DmitryR Jan 5 at 3:33
    
True, I didn't notice that in your question. In the past I've created a new scss file and imported app.scss and other CSS/SCSS files I want compiled in the CSS file. –  Brett DeWoody Jan 5 at 3:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.