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.

panthro
  • 22,779
  • 66
  • 183
  • 324
  • I agree it's a duplicate, but that question is pretty outdated now. – panthro Mar 30 '15 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. – cimmanon Mar 30 '15 at 16:20

1 Answers1

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'));
ceejayoz
  • 176,543
  • 40
  • 303
  • 368