0

I'm looking for easy way to concat scss files(that contain imports) into single scss file,

not compile but concat.

More details: Our SCSS is compiled on-fly based on variables from database, so it it's not possible to compile it before deployment. But I still would like to do some optimizations to help server-side compiler - to concat many files into single one.

Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176

1 Answers1

1

How about using grunt-contrib-concat to only concat as you mentioned:

concat: {
    dist: {
        src: [
            'sass/*.scss',
        ],
        dest: 'sass/build.scss',
    }
}

ref: https://github.com/gruntjs/grunt-contrib-concat#concat-task

George Antonakos
  • 698
  • 5
  • 12