0

I have a sass file that imports all my scss files, I also use bower for some extra stuff, I import these files too. The problem is, one component only has css files, how can I import them into my sass file?

I'm using gulp to compile.

2
  • I agree it's a duplicate, but that question is pretty outdated now. Commented Mar 30, 2015 at 16:18
  • 2
    No, it is perfectly relevant. Sass hasn't changed since that question was posted. The appropriate action is to post a bounty on the original question, not open a new question. Commented Mar 30, 2015 at 16:20

1 Answer 1

1

I use a gulp task that moves example.css into a temporary build folder as example.scss, which makes it importable.

fs.createReadStream('vendor/bower_components/bootstrap-sweetalert/lib/sweet-alert.css')
  .pipe(fs.createWriteStream('public/css/_sweet-alert.scss'));
Sign up to request clarification or add additional context in comments.

2 Comments

Interesting, do you have a code example?
@panthro Added the snippet.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.